예제 #1
0
        public static string ToCssClass(this PaginatorSize size)
        {
            switch (size)
            {
            case PaginatorSize.Large:
                return("pagination-lg");

            case PaginatorSize.Small:
                return("pagination-sm");

            default:
                return(string.Empty);
            }
        }
 public static IItemWriter <Paginator, PaginatorContent> Paginator(this IAnyContentMarker contentHelper, PaginatorSize size)
 {
     return(Paginator(contentHelper).Size(size));
 }
 public static PaginatorContent BeginPaginator(this IAnyContentMarker contentHelper, PaginatorSize size)
 {
     return(Paginator(contentHelper).Size(size).BeginContent());
 }
 public static IItemWriter <T, PaginatorContent> Size <T>(this IItemWriter <T, PaginatorContent> target, PaginatorSize value)
     where T : Paginator
 {
     target.Item.Size = value;
     return(target);
 }