module uim.bootstrap.bs4.components.cards.deck; import uim.bootstrap; /// The BS4CardDeck creates a grid of cards that are of equal height and width class DBS4CardDeck : DBS4Obj { mixin(H5This!("DIV", ["card-deck"])); /// Add card mixin(MyContent!("card", "BS4Card")); O card(this O)(DBS4Card[] cards) { foreach(c; cards) this.card(c); return cast(O)this; } unittest { assert(Assert(BS4CardDeck.card, `<div class="card-deck"><div class="card"></div></div>`)); } } mixin(H5Calls!"BS4CardDeck"); unittest { assert(Assert(BS4CardDeck, `<div class="card-deck"></div>`)); }