Example #1
0
        protected virtual IEnumerable <KeyValuePair <string, object> > GetElementAttributes()
        {
            var attrs = AdditionalAttributes.MergeAttributes(Theme?.ElementAttributes).AppendClass(ElementClass ?? Theme?.ElementClass);

            var h = HeaderHeight ?? Theme?.HeaderHeight;

            if (h != null)
            {
                attrs = attrs.PrependStyle("padding-top:" + h);
            }
            return(attrs);
        }