class Input extends TwillFormComponent (View source)

Properties

Model|null $item from  TwillFormComponent
array $form_fields from  TwillFormComponent
string|null $formModuleName from  TwillFormComponent
string|null $routePrefix from  TwillFormComponent

Methods

__construct(string $name, string $label, bool $renderForBlocks = false, bool $renderForModal = false, bool $translated = false, bool $required = false, string|null $note = '', mixed $default = null, bool $disabled = false, bool $readOnly = false, bool $inModal = false, string $type = 'text', string|null $placeholder = '', string|null $direction = 'auto', int|null $maxlength = null, int|null $rows = null, string|null $ref = null, string|null $onChange = null, string|null $onChangeAttribute = null, string|null $prefix = null, null|int|float $min = null, null|int|float $max = null, null|int|float $step = null, string|null $mask = null)

No description

string
formFieldName(bool $asAttributes = false, string|null $customName = null)

No description

View
render()

No description

Details

__construct(string $name, string $label, bool $renderForBlocks = false, bool $renderForModal = false, bool $translated = false, bool $required = false, string|null $note = '', mixed $default = null, bool $disabled = false, bool $readOnly = false, bool $inModal = false, string $type = 'text', string|null $placeholder = '', string|null $direction = 'auto', int|null $maxlength = null, int|null $rows = null, string|null $ref = null, string|null $onChange = null, string|null $onChangeAttribute = null, string|null $prefix = null, null|int|float $min = null, null|int|float $max = null, null|int|float $step = null, string|null $mask = null)

No description

Parameters

string $name
string $label
bool $renderForBlocks
bool $renderForModal
bool $translated
bool $required
string|null $note
mixed $default
bool $disabled
bool $readOnly
bool $inModal
string $type
string|null $placeholder
string|null $direction
int|null $maxlength
int|null $rows
string|null $ref
string|null $onChange
string|null $onChangeAttribute
string|null $prefix
null|int|float $min
null|int|float $max
null|int|float $step
string|null $mask

string formFieldName(bool $asAttributes = false, string|null $customName = null)

No description

Parameters

bool $asAttributes
string|null $customName

Return Value

string

View render()

No description

Return Value

View