\ReactFormField
Class ReactFormField Manages dependencies, rendering and routing required for all forms using react
Synopsis
class ReactFormField
extends FormField
{
- // members
- private static array $allowed_actions = ;
- // methods
- public mixed index()
- public string getComponentID()
- protected void requireDependencies()
- public HTMLText Field()
Hierarchy
Extends
- FormField
Members
private
- $allowed_actions — array
Methods
protected
- requireDependencies() — Traverses the class hierarchy to determine the required frontend dependencies required from configuration
public
- Field() — Render the react component by calling window.createReactField from the template, this element will be replaced when the component mounts
- getComponentID() — Returns a hash of the current field name and the RequestHandler link. This will be used as a global identification for LocalStorage
- index() — Maps the http method to action handlers. Forces the response to have application/json content type. Unhandled methods will return a 404 response code.