示例#1
0
        protected override void WriteSelfStart(System.IO.TextWriter writer, IBootstrapContext context)
        {
            var tb = context.CreateTagBuilder("table");

            tb.AddCssClass(StyleValue.ToCssClass());

            ApplyCss(tb);
            ApplyAttributes(tb);

            tb.WriteStartTag(writer);

            if (CaptionValue != null)
            {
                CaptionValue.WriteTo(writer, context);
            }
            if (HeaderValue != null)
            {
                HeaderValue.WriteTo(writer, context);
            }
        }