类 CmsDictionaryListDirective

所有已实现的接口:
Directive, HttpDirective, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

@Component public class CmsDictionaryListDirective extends AbstractTemplateDirective
dictionaryList 数据字典列表

参数列表

parameter list

パラメータリスト

  • name:字典名称
  • pageIndex:页码
  • pageSize:每页条数

返回结果

return result

戻り値

使用示例

usage example

使用例

<@cms.dictionaryList name='data'><#list page.list as a>${a.name}<#sep>,</#list></@cms.dictionaryList>

<script>
 $.getJSON('${site.dynamicPath}api/directive/cms/dictionaryList?name=data', function(data){
   console.log(data.page.totalCount);
 });
 </script>
 
  • 字段详细资料

  • 构造器详细资料

    • CmsDictionaryListDirective

      public CmsDictionaryListDirective()
  • 方法详细资料

    • execute

      public void execute(RenderHandler handler) throws IOException, freemarker.template.TemplateException
      参数:
      handler -
      抛出:
      IOException
      freemarker.template.TemplateException