示例#1
0
        public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
        {
            RouteValues = output.TrimPrefixedAttributes(RouteAttributePrefix);
            AjaxValues = output.FindPrefixedAttributes(AjaxAttributePrefix);

            ApplyActionAttributes();
            ApplyPaginationAttributes(context);
            ApplyIconTextAttributes();

            output.TagName = null;
            //if there are no rows then don't show
            if (PageSize != 0 && Total != 0)
                output.Content.SetContent(Create(PageIndex, Total, PageSize));

            await base.ProcessAsync(context, output);
        }