常用TagHelper

一、城市下拉菜单处理

  <select for="PartentId" source="ZKCloud.Core.Common.Domain.Entities.Region" root-field="ParentId" root-value="0" displayfield="Name"   class="form-control" valuefield="Id"></select>

 

二、树形结构

 <tree for="CategoryId" source="ZKCloud.Shop.Category.Domain.Entities.Category" root-field="PartentId"
              root-value="00000000-0000-0000-0000-000000000000" displayfield="Name" valuefield="Id"></tree>

 

三、级联分类

 <recursive for="Classes" filter="ZKCloud.Shop.Product.Domain.CallBacks.ProductCalssRelation"
                   root="0" mode="Tree"></recursive>

 

四、级联标签

 <recursive for="Tags" filter="ZKCloud.Shop.Product.Domain.CallBacks.ProducTagRelation"
                   root="0" mode="Tag"></recursive>

 

五、Tag TagHelper

<tag asp-for="MetaKeywords" class="form-control" ></tag>

 

posted on 2016-07-24 17:48  ZKCloud  阅读(439)  评论(0编辑  收藏  举报