Deferred context added

This commit is contained in:
tugcekucukoglu 2024-02-21 10:31:43 +03:00
parent 9a416252a7
commit 2f353f2c19
44 changed files with 801 additions and 635 deletions

View file

@ -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>