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)); }
private void ApplyCss(ref TagBuilder tagBuilder) { foreach (var externalclass in Component.CSSClasses) { tagBuilder.AddCssClass(externalclass); } tagBuilder.AddCssClass(GridResolver.ResolveSize(this.Component.Size)); }
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)); } }