Documentation

GetUIFilterProperty

result_type
public static function GetUIFilterProperty(
   $property,
   $strHTMLControlName,
   &$fields
);

The method describes type of filter field in the component main.ui.filter. It is responsible for displaying filter in the new grid in administrative pages of information blocks.

Function parameters

Parameter Description
strHTMLControlName Array describing property of this type.
property Array of the form data.
$fields Array containing field description for the filter. Passed via link.

Examples

Example of dropdown list description

{
   // dropdown list values
   $items = [
       'ID_1' => 'value_1',
       ...
       'ID_N' => 'value_N',
   ];
   //IDs can be both integer and string values.

   $fields['type'] = 'list';
   $fields['items'] = $items;
   $fields['filterable'] = '';
   // when multiple selection is required, add this string
   $fields['params'] = ['multiple' => 'Y'];
}


© «Bitrix24», 2001-2024
Up