From Brotato Wiki
(make cost/item buttons inactive by default) |
(update max-width to use parent) |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><!-- | <onlyinclude><includeonly><!-- | ||
--><table style="width: 100%; max-width: | --><table style="width: 100%; max-width: calc(100% - 40px);"> | ||
<tr> | <tr> | ||
<td style="width: 88px;"> | <td style="width: 88px;"> | ||
Line 44: | Line 44: | ||
See [[Mod:Extatonion/Items]] for a working example. | See [[Mod:Extatonion/Items]] for a working example. | ||
Should be wrapped in a DIV or table, which sets its max-width. | |||
== Default == | == Default == | ||
Line 51: | Line 53: | ||
</pre> | </pre> | ||
{{StatsCard_GridToggles}} | <div class="statscard-grid" style="max-width: 1220px;"> | ||
{{StatsCard_GridToggles}} | |||
</div> | |||
== Tier Buttons == | == Tier Buttons == | ||
Line 59: | Line 63: | ||
</pre> | </pre> | ||
{{StatsCard_GridToggles|tier_btns=1}} | <div style="max-width: 1220px;"> | ||
{{StatsCard_GridToggles|tier_btns=1}} | |||
</div> | |||
== Extra Buttons == | == Extra Buttons == | ||
Line 67: | Line 73: | ||
</pre> | </pre> | ||
{{StatsCard_GridToggles|extra_btns=1}} | <div style="max-width: 1220px;"> | ||
{{StatsCard_GridToggles|extra_btns=1}} | |||
</div> | |||
Revision as of 19:10, 18 December 2022
Creates buttons that can be used above a table grid of items, shown with StatsCard, to toggle the visibility of those items.
See Mod:Extatonion/Items for a working example.
Should be wrapped in a DIV or table, which sets its max-width.
Default
{{StatsCard_GridToggles}}
❌ ✔️ |
|
Tier Buttons
{{StatsCard_GridToggles|tier_btns=1}}
❌ ✔️ |
|
Tier 1 Tier 2 Tier 3 Tier 4 |
Extra Buttons
{{StatsCard_GridToggles|extra_btns=1}}
❌ ✔️ |
|
🏷️ |