class Select extends FieldWithOptions (View source)

Properties

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

Below are unused but needed to keep compatible

from  FieldWithOptions
string|null $confirmTitleText from  FieldWithOptions
bool|null $requireConfirmation from  FieldWithOptions

Methods

__construct(string $name, string $label, bool $native = false, bool $inTable = false, bool $inGrid = false, 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, mixed $options = null, bool $unpack = false, int $columns = 0, bool $searchable = false, string|null $placeholder = '', bool $addNew = false, string|null $moduleName = null, string|null $storeUrl = null)

No description

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

No description

View
render()

No description

array
getOptions()

No description

Details

__construct(string $name, string $label, bool $native = false, bool $inTable = false, bool $inGrid = false, 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, mixed $options = null, bool $unpack = false, int $columns = 0, bool $searchable = false, string|null $placeholder = '', bool $addNew = false, string|null $moduleName = null, string|null $storeUrl = null)

No description

Parameters

string $name
string $label
bool $native
bool $inTable
bool $inGrid
bool $renderForBlocks
bool $renderForModal
bool $translated
bool $required
string|null $note
mixed $default
bool $disabled
bool $readOnly
bool $inModal
mixed $options
bool $unpack
int $columns
bool $searchable
string|null $placeholder
bool $addNew
string|null $moduleName
string|null $storeUrl

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

array getOptions()

No description

Return Value

array