Exemplo n.º 1
0
        }                                           // Can be used to set simple text content for the tag

        protected internal Tag(IComponentCreator <THelper> creator, string tagName, params string[] cssClasses)
            : base(creator)
        {
            _tagName     = tagName;
            CssClasses   = new HashSet <string>();
            Attributes   = new MergeableDictionary();
            InlineStyles = new MergeableDictionary();
            foreach (string cssClass in cssClasses.Where(x => !string.IsNullOrWhiteSpace(x)))
            {
                CssClasses.Add(cssClass);
            }
            _prettyPrint = Helper.PrettyPrint;
        }
Exemplo n.º 2
0
 protected Tag(BootstrapHelper helper, string tagName, params string[] cssClasses)
     : base(helper)
 {
     _tagName     = tagName;
     CssClasses   = new HashSet <string>();
     Attributes   = new MergeableDictionary();
     InlineStyles = new MergeableDictionary();
     foreach (string cssClass in cssClasses.Where(x => !string.IsNullOrWhiteSpace(x)))
     {
         CssClasses.Add(cssClass);
     }
     PrettyPrint  = helper.GetConfig().PrettyPrint;
     OutputEndTag = true;
 }