/// <summary> /// Sets the content of the tab panel with the specified value. /// </summary> /// <param name="content">The value of the content.</param> /// <returns>Current component.</returns> public override TabPanel Content(TabPanelContentBase content) { base.Content(content); if (_color != null) { ContentValue.Color(_color); } return(this); }
/// <summary> /// Sets the color of the tab panel content. /// </summary> /// <param name="tabPanelContentBase">The tab panel content instance that this method extends.</param> /// <param name="color">The value of the color.</param> /// <returns>Current component.</returns> public static TabPanelContentBase Color(this TabPanelContentBase tabPanelContentBase, BootstrapColorBase color) { tabPanelContentBase.AddCssClass(string.Format("tab-pane-{0}", color)); return(tabPanelContentBase); }