GetFilterData
public static function GetFilterData( $arUserField, $arHtmlControl )
The method describes type of filter field in the component main.ui.filter.
Parameters
Parameter | Description | Available from version |
---|---|---|
arUserField | Array describing property type. | |
arHtmlControl | Array with the form data. |
Example
Example of showing a dropdown list
{ // ID can be both integer values and strings $items = [ 'ID_1' => 'value_1', ... 'ID_N' => 'value_N', ]; // dropdown list values return [ "id" => $arHtmlControl["ID"], "name" => $arHtmlControl["NAME"], "type" => "list", "items" => $items, "params" => array("multiple" => "Y"), //when multiple selection is required "filterable" => "" ]; }
© «Bitrix24», 2001-2024