Dropdown
class Dropdown implements FieldType, JsonSerializable (View source)
Properties
protected string|int | $value |
Methods
__construct(string|int $value = '')
Create a new instance of List field type.
mixed
jsonSerialize()
Serialize the class.
mixed
getValue()
Return the value of this field.
void
setValue(mixed $value)
Set the value of this field.
string
getLabel()
Return the display label for the field type.
string
getSettingsView()
Return the reference to the view used in the settings.
string
getView()
Return the view used in editing.
array
getConfig()
Return the config for the field type.
Details
__construct(string|int $value = '')
Create a new instance of List field type.
mixed
jsonSerialize()
Serialize the class.
mixed
getValue()
Return the value of this field.
void
setValue(mixed $value)
Set the value of this field.
string
getLabel()
Return the display label for the field type.
string
getSettingsView()
Return the reference to the view used in the settings.
string
getView()
Return the view used in editing.
array
getConfig()
Return the config for the field type.