Exemplo n.º 1
0
        /// <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());
        }
Exemplo n.º 3
0
 internal MvcCoreBootstrapListGroupLinksBuilder(ListGroupConfig config)
 {
     _config = config;
 }
Exemplo n.º 4
0
 public ListGroupRenderer(ListGroupConfig config)
 {
     _config = config;
 }