MultiSelect

MultiSelect implements OutputableInterface, ValidatableInterface

Multi Select

Methods

__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( )

Last updated : September 15, 2018 b92362d