/// <summary> /// Adds a list group to the card. /// </summary> /// <param name="configAction">Action to perform list group configuration.</param> /// <returns>The card builder instance.</returns> public MvcCoreBootstrapCardBuilder ListGroup(Action <MvcCoreBootstrapListGroupBuilder> configAction) { ListGroupConfig config = new ListGroupConfig(); _listGroupRenderer = new ListGroupRenderer(config); configAction(new MvcCoreBootstrapListGroupBuilder(config)); return(this); }
/// <summary> /// Renders an Mvc Core Bootstrap list group. /// </summary> /// <param name="htmlHelper">Html helper instance.</param> /// <param name="configAction">Action that implements list group configuration.</param> /// <returns>List group html markup.</returns> public static IHtmlContent MvcCoreBootstrapListGroup(this IHtmlHelper htmlHelper, Action <MvcCoreBootstrapListGroupBuilder> configAction) { ListGroupConfig config = new ListGroupConfig(); configAction(new MvcCoreBootstrapListGroupBuilder(config)); return(new ListGroupRenderer(config).Render()); }
internal MvcCoreBootstrapListGroupLinksBuilder(ListGroupConfig config) { _config = config; }
public ListGroupRenderer(ListGroupConfig config) { _config = config; }