MultiSelect
MultiSelect implements OutputableInterface, ValidatableInterface
Multi Select
- Full name: \Gibbon\Forms\Input\MultiSelect
- This class implements: Warning: strrchr() expects parameter 1 to be string, object given in /Users/sankuipe/Desktop/Localhost/documentor/src/Extension/TwigMarkdownAnchorLink.php on line 108
Methods
- __construct
- getID
- addSortableAttribute
- setSize
- isRequired — Set the multi-select to required.
- getRequired — Gets the multi-select’s required state.
- source
- destination
- getOutput
- addValidation — Add a LiveValidation setting to the right-hand select by type (eg: Validate.Presence)
- getValidationOutput — Get the combined validation output from the right-hand select.
- getClass
__construct
MultiSelect::__construct( \Gibbon\Forms\FormFactoryInterface &$factory, $name )
getID
MultiSelect::getID( )
addSortableAttribute
MultiSelect::addSortableAttribute( $attribute, $values )
setSize
MultiSelect::setSize( $size = 8 )
isRequired
Set the multi-select to required.
MultiSelect::isRequired( $required = true ): self
Returns Self: This method can be chained.
getRequired
Gets the multi-select’s required state.
MultiSelect::getRequired( ): boolean
Return Value:
boolean
source
MultiSelect::source( )
destination
MultiSelect::destination( )
getOutput
MultiSelect::getOutput( )
addValidation
Add a LiveValidation setting to the right-hand select by type (eg: Validate.Presence)
MultiSelect::addValidation( string $type, string $params = '' )
getValidationOutput
Get the combined validation output from the right-hand select.
MultiSelect::getValidationOutput( ): string
Return Value:
string
getClass
MultiSelect::getClass( )