mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Deferred context added
This commit is contained in:
parent
9a416252a7
commit
2f353f2c19
44 changed files with 801 additions and 635 deletions
|
@ -2,16 +2,18 @@
|
|||
<DocSectionText v-bind="$attrs">
|
||||
<p>A column can be fixed during horizontal scrolling by enabling the <i>frozen</i> property on a Column. The location is defined with the <i>alignFrozen</i> that can be <i>left</i> or <i>right</i>.</p>
|
||||
</DocSectionText>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="300px" scrollDirection="both">
|
||||
<Column field="name" header="Name" expander frozen style="width: 250px; height: 57px"></Column>
|
||||
<Column field="size" header="Size" style="width: 250px; height: 57px"></Column>
|
||||
<Column field="type" header="Type 2" style="width: 250px; height: 57px"></Column>
|
||||
<Column field="size" header="Size 2" style="width: 250px; height: 57px"></Column>
|
||||
<Column field="type" header="Type 3" style="width: 250px; height: 57px"></Column>
|
||||
<Column field="size" header="Size 3" style="width: 250px; height: 57px"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="300px" scrollDirection="both">
|
||||
<Column field="name" header="Name" expander frozen style="width: 250px; height: 57px"></Column>
|
||||
<Column field="size" header="Size" style="width: 250px; height: 57px"></Column>
|
||||
<Column field="type" header="Type 2" style="width: 250px; height: 57px"></Column>
|
||||
<Column field="size" header="Size 2" style="width: 250px; height: 57px"></Column>
|
||||
<Column field="type" header="Type 3" style="width: 250px; height: 57px"></Column>
|
||||
<Column field="size" header="Size 3" style="width: 250px; height: 57px"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
<DocSectionCode :code="code" :service="['NodeService']" />
|
||||
</template>
|
||||
|
||||
|
@ -118,8 +120,10 @@ const nodes = ref();
|
|||
}
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
NodeService.getTreeTableNodes().then((data) => (this.nodes = data));
|
||||
methods: {
|
||||
loadDemoData() {
|
||||
NodeService.getTreeTableNodes().then((data) => (this.nodes = data));
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue