コード例 #1
0
        public static IItemWriter <T> Href <T>(this IItemWriter <T> target, UrlActionContext actionContext)
            where T : Element, ILink
        {
            var href = ((BootstrapHelper)target.Helper).CreateUrl(actionContext);

            target.Href(href);
            return(target);
        }
コード例 #2
0
        public static IItemWriter <T> Href <T>(this IItemWriter <T> target, RouteValueDictionary routeValues)
            where T : Element, ILink
        {
            var href = target.Helper.CreateUrl(routeValues);

            target.Href(href);
            return(target);
        }
コード例 #3
0
        public static IItemWriter <T, TContent> Href <T, TContent>(this IItemWriter <T, TContent> target, UrlActionContext actionContext)
            where T : ContentElement <TContent>, ILink
            where TContent : DisposableContent
        {
            var href = ((BootstrapHelper)target.Helper).CreateUrl(actionContext);

            target.Href(href);
            return(target);
        }
コード例 #4
0
        public static IItemWriter <T, TContent> Href <T, TContent>(this IItemWriter <T, TContent> target, RouteValueDictionary routeValues)
            where T : ContentElement <TContent>, ILink
            where TContent : DisposableContent
        {
            var href = target.Helper.CreateUrl(routeValues);

            target.Href(href);
            return(target);
        }