Get values of filters selection in JS

urbido

Member
Hello,
I know there is a method for get filtered data in PHP with $model->filters['your-element-id'].
For print list template we use in deafult.php:
$myFilters = array();
foreach ($this->filters as $filter)
{
if(strlen($filter->displayValue)>0){
if($filter->label == "id" || $filter->label == "" || $filter->label == null)continue;
$myFilters[] = $filter->label . ": " . $filter->displayValue;
}
}
$myCustName = implode(', ', $myFilters);
echo ($myCustName);

But we use ajaxify list filters, so is there any method, how to get values of filters selection in JS? Is there any function in list.js or listfilter.js?

Thank you
 
We are in need of some funding.
More details.

Thank you.

Staff online

Members online

Back
Top