Exemple #1
0
 private void ApplyAttributes(ref TagBuilder tagBuilder)
 {
     foreach (var externalattribute in Component.Attributes.Keys)
     {
         tagBuilder.Attributes.Add(externalattribute, Component.Attributes[externalattribute]);
     }
     tagBuilder.AddCssClass(GridResolver.ResolveSize(this.Component.Size));
 }
Exemple #2
0
 private void ApplyCss(ref TagBuilder tagBuilder)
 {
     foreach (var externalclass in Component.CSSClasses)
     {
         tagBuilder.AddCssClass(externalclass);
     }
     tagBuilder.AddCssClass(GridResolver.ResolveSize(this.Component.Size));
 }
Exemple #3
0
 private void setLayoutValues(ref TagBuilder tag)
 {
     if (this.Component.Layout.HasValue)
     {
         tag.AddCssClass(LayoutManager.ResolveLayout(this.Component.Layout.Value));
     }
     if (this.Component.LayoutSize.HasValue)
     {
         tag.AddCssClass(GridResolver.ResolveSize(this.Component.LayoutSize.Value));
     }
 }