vdl-index-filter
Filter an index out of a <vdl-table-column>. Reduces the size of the indices by fixing the value of the specified index set. This is useful for matching up array entities where some have extra indices. Can also be used to pivot the given indices to become columns instead of rows.
Required parent element
Must be contained within one of the following elements:
Example
<vdl-table>
<vdl-table-column entity="Altitude">
<vdl-index-filter set="Continent" value="=scenario.entities.SelectedContinent.value"></vdl-index-filter>
<vdl-index-filter set="Country" value="=scenario.entities.SelectedCountry.value"></vdl-index-filter>
</vdl-table-column>
<vdl-table-column entity="ShippingCost">
<!--
Given ShippingCost : array (Country, Country) of real
(so using the same index set multiple times), filter the destination country (the second occurrence of Country in the declaration, so use set-position of 1) -->
<vdl-index-filter set="Country" set-position="1" value="=scenario.entities.SelectedCountry.value"></vdl-index-filter> </vdl-table-column>
</vdl-table>
Attributes
set | Name of the set entity to filter out of the indices for the column. | required | |
---|---|---|---|
value | Single value to fix the indices to. | accepts expression | required |
set-position | Index (zero-based) of occurrence of that index set in the index tuple for the array. Defaults to zero. |