SetDefaultRows
CAdminFilter::SetDefaultRows( $fields );
Method defines filter fields to be displayed by default. Called immediately after initializing the filter, meaning:
$oFilter = new CAdminFilter(parameters); $oFilter->SetDefaultRows(necessary fields);
Function parameters
nParameter | Description |
---|---|
fields | String or array with list of fields. Comma character must be used as separator when passing filter field names as string. Below you can see examples of calls that activate the same fields:
$oFilter->SetDefaultRows('find_id,find_active');or $oFilter->SetDefaultRows([ 'find_id', 'find_active', ]);It's recommended to pass list of fields as an array (passing a string has deprecated and supported within compatibility parameters). |
© «Bitrix24», 2001-2024