コード例 #1
0
        public KnockoutTagBuilder <TModel> SpanInline(string text, object htmlAttributes = null)
        {
            var tagBuilder = new KnockoutTagBuilder <TModel>(Context, "span", InstanceNames, Aliases);

            tagBuilder.ApplyAttributes(htmlAttributes);
            tagBuilder.Text(text);
            return(tagBuilder);
        }
コード例 #2
0
        public KnockoutTagBuilder <TModel> Span(Expression <Func <TModel, object> > text, object htmlAttributes = null)
        {
            var tagBuilder = new KnockoutTagBuilder <TModel>(Context, "span", InstanceNames, Aliases);

            tagBuilder.ApplyAttributes(htmlAttributes);
            tagBuilder.Text(text);
            return(tagBuilder);
        }