1191
1191
<div class =" hds-advanced-table__thead" >
1192
1192
<div class =" hds-advanced-table__tr" >
1193
1193
{{ #each @model.STATES as |state |}}
1194
- <Hds::AdvancedTable::Th mock-state-value ={{ state }} mock-state-selector =" button" @isExpandable ={{ true }} >
1194
+ <Hds::AdvancedTable::Th
1195
+ mock-state-value ={{ state }}
1196
+ mock-state-selector =" button"
1197
+ @isExpandable ={{ true }}
1198
+ @hasExpandAllButton ={{ true }}
1199
+ >
1195
1200
{{ capitalize state }}
1196
1201
</Hds::AdvancedTable::Th >
1197
1202
{{ /each }}
1209
1214
mock-state-selector =" button"
1210
1215
@isExpandable ={{ true }}
1211
1216
@isExpanded ={{ true }}
1217
+ @hasExpandAllButton ={{ true }}
1212
1218
>
1213
1219
{{ capitalize state }}
1214
1220
</Hds::AdvancedTable::Th >
1227
1233
mock-state-selector =" button"
1228
1234
@isExpandable ={{ true }}
1229
1235
@isExpanded =" mixed"
1236
+ @hasExpandAllButton ={{ true }}
1230
1237
>
1231
1238
{{ capitalize state }}
1232
1239
</Hds::AdvancedTable::Th >
1248
1255
mock-state-value ={{ state }}
1249
1256
mock-state-selector =" button"
1250
1257
@isExpandable ={{ true }}
1258
+ @hasExpandAllButton ={{ true }}
1251
1259
>
1252
1260
{{ capitalize state }}
1253
1261
</Hds::AdvancedTable::Th >
1267
1275
mock-state-selector =" button"
1268
1276
@isExpandable ={{ true }}
1269
1277
@isExpanded ={{ true }}
1278
+ @hasExpandAllButton ={{ true }}
1270
1279
>
1271
1280
{{ capitalize state }}
1272
1281
</Hds::AdvancedTable::Th >
1286
1295
mock-state-selector =" button"
1287
1296
@isExpandable ={{ true }}
1288
1297
@isExpanded =" mixed"
1298
+ @hasExpandAllButton ={{ true }}
1289
1299
>
1290
1300
{{ capitalize state }}
1291
1301
</Hds::AdvancedTable::Th >
1810
1820
{{ /each }}
1811
1821
</Shw::Grid >
1812
1822
1823
+ <Shw::Grid @label =" Expand all interactive states + Expand state" @columns ={{ 4 }} as |SG|>
1824
+ {{ #each @model.STATES as |state |}}
1825
+ <SG .Item @label ={{ capitalize state }} >
1826
+ <Shw::Flex @direction =" row" as |SF|>
1827
+ <SF .Item>
1828
+ <Hds::AdvancedTable::ThButtonExpand mock-state-value ={{ state }} @isExpandAll ={{ true }} />
1829
+ </SF .Item>
1830
+ <SF .Item>
1831
+ <Hds::AdvancedTable::ThButtonExpand @isExpanded ={{ true }} mock-state-value ={{ state }} @isExpandAll ={{ true }} />
1832
+ </SF .Item>
1833
+ <SF .Item>
1834
+ <Hds::AdvancedTable::ThButtonExpand @isExpanded =" mixed" mock-state-value ={{ state }} @isExpandAll ={{ true }} />
1835
+ </SF .Item>
1836
+ </Shw::Flex >
1837
+ </SG .Item>
1838
+ {{ /each }}
1839
+ </Shw::Grid >
1840
+
1813
1841
</section >
0 commit comments