FluidTYPO3\Flux\ViewHelpers\Field\AbstractMultiValueFieldViewHelper::initializeArguments PHP Method

initializeArguments() public method

Initialize
public initializeArguments ( ) : void
return void
    public function initializeArguments()
    {
        parent::initializeArguments();
        $this->registerArgument('validate', 'string', 'FlexForm-type validation configuration for this input', FALSE, 'trim');
        $this->registerArgument('size', 'integer', 'Size of the selector box', FALSE, 1);
        $this->registerArgument('multiple', 'boolean', 'If TRUE, allows multiple selections', FALSE, FALSE);
        $this->registerArgument('minItems', 'integer', 'Minimum required number of items to be selected', FALSE, 0);
        $this->registerArgument('maxItems', 'integer', 'Maxium allowed number of items to be selected', FALSE, 1);
        $this->registerArgument('itemListStyle', 'string', 'Overrides the default list style when maxItems > 1', FALSE, NULL);
        $this->registerArgument('selectedListStyle', 'string', 'Overrides the default selected list style when maxItems > 1 and renderMode is default', FALSE, NULL);
        $this->registerArgument('renderMode', 'string', 'Alternative rendering mode - default is an HTML select field but you can also use fx "checkbox" - see TCA "select" field "renderType" attribute', FALSE, NULL);
    }

Usage Example

Beispiel #1
0
 /**
  * Initialize
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('items', 'mixed', 'Items for the selector; array / CSV / Traversable / Query supported', TRUE);
     $this->registerArgument('emptyOption', 'mixed', 'If not-FALSE, adds one empty option/value pair to the generated selector box and tries to use this property\'s value (cast to string) as label.', FALSE, FALSE);
     $this->registerArgument('translateCsvItems', 'boolean', 'If TRUE, attempts to resolve a LLL label for each value provided as CSV in "items" attribute using convention for lookup "$field.option.123" if given "123" as CSV item value. Field name is determined by normal Flux field name conventions');
 }
All Usage Examples Of FluidTYPO3\Flux\ViewHelpers\Field\AbstractMultiValueFieldViewHelper::initializeArguments
AbstractMultiValueFieldViewHelper