Generic DataTable "Template" with custom column definitions

UI Components for Vue
Post Reply
n-xt
Posts: 2
Joined: 02 Mar 2021, 10:50

03 Jun 2021, 10:27

I have many entities in my application and I would like to use the same DataTable for each entity. So my idea was to create a single generic DataTable module and include the entity specific Column definitons as child-modules. So that I would have a column definition per entity. However, no column appears - they are ignored. Any idea?.

My "generic" DataTable template:

Code: Select all

<DataTable :value="listData">
  <EntityDatatableColumns />
</DataTable>
My individual column definiton for one entity

Code: Select all

<Column field="scope" header="Scope"></Column>
<Column field="status" header="Status"></Column>

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests