Files
CHIEFSOFT\ameye df3a033196 first commit
2024-06-08 17:09:23 -04:00

22 lines
779 B
Smarty

{**
* templates/controllers/grid/feature/featuresOptions.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2000-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Grid features js options.
*}
{ldelim}
{foreach name=features from=$features item=feature}
{$feature->getId()|json_encode}: {ldelim}
JSClass: {$feature->getJSClass()|json_encode},
options: {ldelim}
{foreach name=featureOptions from=$feature->getOptions() key=optionName item=optionValue}
{$optionName}: {if $optionValue}'{$optionValue|escape:javascript}'{else}false{/if}{if !$smarty.foreach.featureOptions.last},{/if}
{/foreach}
{rdelim}
{rdelim}{if !$smarty.foreach.features.last},{/if}
{/foreach}
{rdelim}