Refactor on ColumnToggler demo
parent
10726918f6
commit
e20a6964f3
|
@ -16,7 +16,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<Column field="vin" header="Vin" />
|
<Column field="vin" header="Vin" />
|
||||||
<Column v-for="col of selectedColumns" :field="col.field" :header="col.header" :key="col.field"></Column>
|
<Column v-for="(col, index) of selectedColumns" :field="col.field" :header="col.header" :key="col.field + '_' + index"></Column>
|
||||||
</DataTable>
|
</DataTable>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<Column field="vin" header="Vin" />
|
<Column field="vin" header="Vin" />
|
||||||
<Column v-for="col of selectedColumns" :field="col.field" :header="col.header" :key="col.field"></Column>
|
<Column v-for="(col, index) of selectedColumns" :field="col.field" :header="col.header" :key="col.field + '_' + index"></Column>
|
||||||
</DataTable>
|
</DataTable>
|
||||||
</template>
|
</template>
|
||||||
</CodeHighlight>
|
</CodeHighlight>
|
||||||
|
|
Loading…
Reference in New Issue