Ejemplo n.º 1
0
        /// <summary>
        /// Sets the title of the tab panel with the specified value.
        /// </summary>
        /// <param name="title">The value of the title.</param>
        /// <returns>Current component.</returns>
        public override TabPanel Title(TabPanelTitleBase title)
        {
            base.Title(title);
            if (_color != null)
            {
                TitleValue.Color(_color);
            }

            return(this);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Sets the color of the tab panel title.
        /// </summary>
        /// <param name="tabPanelTitleBase">The tab panel title instance that this method extends.</param>
        /// <param name="color">The value of the color.</param>
        /// <returns>Current component.</returns>
        public static TabPanelTitleBase Color(this TabPanelTitleBase tabPanelTitleBase, BootstrapColorBase color)
        {
            tabPanelTitleBase.AddCssClass(string.Format("tab-{0}", color));

            return(tabPanelTitleBase);
        }