TreeTable doc updates
parent
5cb78b9b3c
commit
f3f32b98fd
File diff suppressed because it is too large
Load Diff
|
@ -4,10 +4,10 @@
|
|||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
|
@ -23,19 +23,19 @@ export default {
|
|||
nodes: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -58,10 +58,10 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<template #header>
|
||||
<div style="text-align: left">
|
||||
<MultiSelect :modelValue="selectedColumns" @update:modelValue="onToggle" :options="columns" optionLabel="header" class="w-full sm:w-16rem" display="chip" />
|
||||
|
@ -29,7 +29,7 @@ export default {
|
|||
columns: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes">
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<template #header>
|
||||
<div style="text-align:left">
|
||||
<MultiSelect :modelValue="selectedColumns" @update:modelValue="onToggle" :options="columns" optionLabel="header" class="w-full sm:w-16rem" display="chip"/>
|
||||
|
@ -42,7 +42,7 @@ export default {
|
|||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<template #header>
|
||||
<div style="text-align:left">
|
||||
<MultiSelect :modelValue="selectedColumns" @update:modelValue="onToggle" :options="columns" optionLabel="header" class="w-full sm:w-16rem" display="chip"/>
|
||||
|
@ -87,7 +87,7 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<template #header>
|
||||
<div style="text-align:left">
|
||||
<MultiSelect :modelValue="selectedColumns" @update:modelValue="onToggle" :options="columns" optionLabel="header" class="w-full sm:w-16rem" display="chip"/>
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<Button @click="toggleApplications" label="Toggle Applications" />
|
||||
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes" class="mt-4">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes" class="mt-4" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
|
@ -26,20 +26,20 @@ export default {
|
|||
code: {
|
||||
basic: `
|
||||
<Button @click="toggleApplications" label="Toggle Applications" />
|
||||
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes" class="mt-4" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<Button @click="toggleApplications" label="Toggle Applications" />
|
||||
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes" class="mt-4" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -74,10 +74,10 @@ export default {
|
|||
<template>
|
||||
<div class="card">
|
||||
<Button @click="toggleApplications" label="Toggle Applications" />
|
||||
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes" class="mt-4" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<Column v-for="col of columns" :key="col.field" :field="col.field" :header="col.header" :expander="col.expander"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
|
@ -22,14 +22,14 @@ export default {
|
|||
columns: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes">
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<Column v-for="col of columns" :key="col.field" :field="col.field" :header="col.header" :expander="col.expander"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<Column v-for="col of columns" :key="col.field" :field="col.field" :header="col.header" :expander="col.expander"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
|
@ -61,7 +61,7 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<Column v-for="col of columns" :key="col.field" :field="col.field" :header="col.header" :expander="col.expander"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
|
|
|
@ -13,26 +13,24 @@
|
|||
</div>
|
||||
<TreeTable :value="nodes" :filters="filters" :filterMode="filterMode.value">
|
||||
<template #header>
|
||||
<div class="text-right">
|
||||
<div class="flex justify-content-end">
|
||||
<IconField>
|
||||
<InputIcon>
|
||||
<i class="pi pi-search" />
|
||||
</InputIcon>
|
||||
<InputIcon class="pi pi-search" />
|
||||
<InputText v-model="filters['global']" placeholder="Global Search" />
|
||||
</IconField>
|
||||
</div>
|
||||
</template>
|
||||
<Column field="name" header="Name" expander>
|
||||
<Column field="name" header="Name" expander style="min-width: 12rem">
|
||||
<template #filter>
|
||||
<InputText v-model="filters['name']" type="text" class="p-column-filter" placeholder="Filter by name" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="size" header="Size">
|
||||
<Column field="size" header="Size" style="min-width: 12rem">
|
||||
<template #filter>
|
||||
<InputText v-model="filters['size']" type="text" class="p-column-filter" placeholder="Filter by size" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="type" header="Type">
|
||||
<Column field="type" header="Type" style="min-width: 12rem">
|
||||
<template #filter>
|
||||
<InputText v-model="filters['type']" type="text" class="p-column-filter" placeholder="Filter by type" />
|
||||
</template>
|
||||
|
@ -61,26 +59,24 @@ export default {
|
|||
<SelectButton v-model="filterMode" optionLabel="label" dataKey="label" :options="filterOptions" />
|
||||
<TreeTable :value="nodes" :filters="filters" :filterMode="filterMode.value">
|
||||
<template #header>
|
||||
<div class="text-right">
|
||||
<div class="flex justify-content-end">
|
||||
<IconField>
|
||||
<InputIcon>
|
||||
<i class="pi pi-search" />
|
||||
</InputIcon>
|
||||
<InputIcon class="pi pi-search" />
|
||||
<InputText v-model="filters['global']" placeholder="Global Search" />
|
||||
</IconField>
|
||||
</div>
|
||||
</template>
|
||||
<Column field="name" header="Name" expander>
|
||||
<Column field="name" header="Name" expander style="min-width: 12rem">
|
||||
<template #filter>
|
||||
<InputText v-model="filters['name']" type="text" class="p-column-filter" placeholder="Filter by name" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="size" header="Size">
|
||||
<Column field="size" header="Size" style="min-width: 12rem">
|
||||
<template #filter>
|
||||
<InputText v-model="filters['size']" type="text" class="p-column-filter" placeholder="Filter by size" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="type" header="Type">
|
||||
<Column field="type" header="Type" style="min-width: 12rem">
|
||||
<template #filter>
|
||||
<InputText v-model="filters['type']" type="text" class="p-column-filter" placeholder="Filter by type" />
|
||||
</template>
|
||||
|
@ -95,26 +91,24 @@ export default {
|
|||
</div>
|
||||
<TreeTable :value="nodes" :filters="filters" :filterMode="filterMode.value">
|
||||
<template #header>
|
||||
<div class="text-right">
|
||||
<div class="flex justify-content-end">
|
||||
<IconField>
|
||||
<InputIcon>
|
||||
<i class="pi pi-search" />
|
||||
</InputIcon>
|
||||
<InputIcon class="pi pi-search" />
|
||||
<InputText v-model="filters['global']" placeholder="Global Search" />
|
||||
</IconField>
|
||||
</div>
|
||||
</template>
|
||||
<Column field="name" header="Name" expander>
|
||||
<Column field="name" header="Name" expander style="min-width: 12rem">
|
||||
<template #filter>
|
||||
<InputText v-model="filters['name']" type="text" class="p-column-filter" placeholder="Filter by name" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="size" header="Size">
|
||||
<Column field="size" header="Size" style="min-width: 12rem">
|
||||
<template #filter>
|
||||
<InputText v-model="filters['size']" type="text" class="p-column-filter" placeholder="Filter by size" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="type" header="Type">
|
||||
<Column field="type" header="Type" style="min-width: 12rem">
|
||||
<template #filter>
|
||||
<InputText v-model="filters['type']" type="text" class="p-column-filter" placeholder="Filter by type" />
|
||||
</template>
|
||||
|
@ -152,26 +146,24 @@ export default {
|
|||
</div>
|
||||
<TreeTable :value="nodes" :filters="filters" :filterMode="filterMode.value">
|
||||
<template #header>
|
||||
<div class="text-right">
|
||||
<div class="flex justify-content-end">
|
||||
<IconField>
|
||||
<InputIcon>
|
||||
<i class="pi pi-search" />
|
||||
</InputIcon>
|
||||
<InputIcon class="pi pi-search" />
|
||||
<InputText v-model="filters['global']" placeholder="Global Search" />
|
||||
</IconField>
|
||||
</div>
|
||||
</template>
|
||||
<Column field="name" header="Name" expander>
|
||||
<Column field="name" header="Name" expander style="min-width: 12rem">
|
||||
<template #filter>
|
||||
<InputText v-model="filters['name']" type="text" class="p-column-filter" placeholder="Filter by name" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="size" header="Size">
|
||||
<Column field="size" header="Size" style="min-width: 12rem">
|
||||
<template #filter>
|
||||
<InputText v-model="filters['size']" type="text" class="p-column-filter" placeholder="Filter by size" />
|
||||
</template>
|
||||
</Column>
|
||||
<Column field="type" header="Type">
|
||||
<Column field="type" header="Type" style="min-width: 12rem">
|
||||
<template #filter>
|
||||
<InputText v-model="filters['type']" type="text" class="p-column-filter" placeholder="Filter by type" />
|
||||
</template>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :lazy="true" :paginator="true" :rows="rows" :loading="loading" @nodeExpand="onExpand" @page="onPage" :totalRecords="totalRecords">
|
||||
<TreeTable :value="nodes" :lazy="true" :paginator="true" :rows="rows" :loading="loading" @nodeExpand="onExpand" @page="onPage" :totalRecords="totalRecords" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
|
@ -33,7 +33,7 @@ export default {
|
|||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes" :lazy="true" :paginator="true" :rows="rows" :loading="loading"
|
||||
@nodeExpand="onExpand" @page="onPage" :totalRecords="totalRecords">
|
||||
@nodeExpand="onExpand" @page="onPage" :totalRecords="totalRecords" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
|
@ -43,7 +43,7 @@ export default {
|
|||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :lazy="true" :paginator="true" :rows="rows" :loading="loading"
|
||||
@nodeExpand="onExpand" @page="onPage" :totalRecords="totalRecords">
|
||||
@nodeExpand="onExpand" @page="onPage" :totalRecords="totalRecords" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
|
@ -144,7 +144,7 @@ export default {
|
|||
<template>
|
||||
<div>
|
||||
<TreeTable :value="nodes" :lazy="true" :paginator="true" :rows="rows" :loading="loading"
|
||||
@nodeExpand="onExpand" @page="onPage" :totalRecords="totalRecords">
|
||||
@nodeExpand="onExpand" @page="onPage" :totalRecords="totalRecords" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" :expander="true"></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
|
|
|
@ -1,117 +0,0 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>A horizontal scrollbar is displayed when parent of the table gets smaller than the defined <i>minWidth</i>.</p>
|
||||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :tableProps="{ style: { minWidth: '650px' } }" style="overflow: auto">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
<DocSectionCode :code="code" :service="['NodeService']" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { NodeService } from '@/service/NodeService';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
nodes: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes" :tableProps="{ style: { minWidth: '650px' } }" style="overflow: auto">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :tableProps="{ style: { minWidth: '650px' } }" style="overflow: auto">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { NodeService } from '@/service/NodeService';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
nodes: null,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
NodeService.getTreeTableNodes().then((data) => (this.nodes = data));
|
||||
}
|
||||
}
|
||||
<\/script>
|
||||
`,
|
||||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :tableProps="{ style: { minWidth: '650px' } }" style="overflow: auto">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue';
|
||||
import { NodeService } from '@/service/NodeService';
|
||||
|
||||
onMounted(() => {
|
||||
NodeService.getTreeTableNodes().then((data) => (nodes.value = data));
|
||||
});
|
||||
|
||||
const nodes = ref();
|
||||
<\/script>
|
||||
`,
|
||||
data: `
|
||||
{
|
||||
key: '0',
|
||||
label: 'Documents',
|
||||
data: 'Documents Folder',
|
||||
icon: 'pi pi-fw pi-inbox',
|
||||
children: [
|
||||
{
|
||||
key: '0-0',
|
||||
label: 'Work',
|
||||
data: 'Work Folder',
|
||||
icon: 'pi pi-fw pi-cog',
|
||||
children: [
|
||||
{ key: '0-0-0', label: 'Expenses.doc', icon: 'pi pi-fw pi-file', data: 'Expenses Document' },
|
||||
{ key: '0-0-1', label: 'Resume.doc', icon: 'pi pi-fw pi-file', data: 'Resume Document' }
|
||||
]
|
||||
},
|
||||
{
|
||||
key: '0-1',
|
||||
label: 'Home',
|
||||
data: 'Home Folder',
|
||||
icon: 'pi pi-fw pi-home',
|
||||
children: [{ key: '0-1-0', label: 'Invoices.txt', icon: 'pi pi-fw pi-file', data: 'Invoices for this month' }]
|
||||
}
|
||||
]
|
||||
},
|
||||
...
|
||||
`
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
loadDemoData() {
|
||||
NodeService.getTreeTableNodes().then((data) => (this.nodes = data));
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
|
@ -7,10 +7,10 @@
|
|||
<div class="flex justify-content-center mb-4">
|
||||
<SelectButton v-model="size" :options="sizeOptions" optionLabel="label" dataKey="label" />
|
||||
</div>
|
||||
<TreeTable :value="nodes" :class="`p-treetable-${size.class}`">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" :size="size.value" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
|
@ -26,25 +26,25 @@ export default {
|
|||
nodes: null,
|
||||
size: { label: 'Normal', value: 'normal' },
|
||||
sizeOptions: [
|
||||
{ label: 'Small', value: 'small', class: 'sm' },
|
||||
{ label: 'Small', value: 'small' },
|
||||
{ label: 'Normal', value: 'normal' },
|
||||
{ label: 'Large', value: 'large', class: 'lg' }
|
||||
{ label: 'Large', value: 'large' }
|
||||
],
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes" :class="\`p-treetable-\${size.class}\`">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" :size="size.value" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :class="\`p-treetable-\${size.class}\`">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" :size="size.value" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -73,10 +73,10 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :class="\`p-treetable-\${size.class}\`">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" :size="size.value" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<template #header>
|
||||
<div class="text-xl font-bold">File Viewer</div>
|
||||
</template>
|
||||
<Column field="name" header="Name" :expander="true"></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<Column headerStyle="width: 10rem">
|
||||
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
||||
<Column field="size" header="Size" style="width: 150px"></Column>
|
||||
<Column field="type" header="Type" style="width: 150px"></Column>
|
||||
<Column style="width: 10rem">
|
||||
<template #body>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<Button type="button" icon="pi pi-search" rounded />
|
||||
|
@ -39,14 +39,14 @@ export default {
|
|||
nodes: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes">
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<template #header>
|
||||
<div class="text-xl font-bold">File Viewer</div>
|
||||
</template>
|
||||
<Column field="name" header="Name" :expander="true"></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<Column headerStyle="width: 10rem">
|
||||
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
||||
<Column field="size" header="Size" style="width: 150px"></Column>
|
||||
<Column field="type" header="Type" style="width: 150px"></Column>
|
||||
<Column style="width: 10rem">
|
||||
<template #body>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<Button type="button" icon="pi pi-search" rounded />
|
||||
|
@ -64,14 +64,14 @@ export default {
|
|||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<template #header>
|
||||
<div class="text-xl font-bold">File Viewer</div>
|
||||
</template>
|
||||
<Column field="name" header="Name" :expander="true"></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<Column headerStyle="width: 10rem">
|
||||
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
||||
<Column field="size" header="Size" style="width: 150px"></Column>
|
||||
<Column field="type" header="Type" style="width: 150px"></Column>
|
||||
<Column style="width: 10rem">
|
||||
<template #body>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<Button type="button" icon="pi pi-search" rounded/>
|
||||
|
@ -106,14 +106,14 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<template #header>
|
||||
<div class="text-xl font-bold">File Viewer</div>
|
||||
</template>
|
||||
<Column field="name" header="Name" :expander="true"></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<Column headerStyle="width: 10rem">
|
||||
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
||||
<Column field="size" header="Size" style="width: 150px"></Column>
|
||||
<Column field="type" header="Type" style="width: 150px"></Column>
|
||||
<Column style="width: 10rem">
|
||||
<template #body>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
<Button type="button" icon="pi pi-search" rounded/>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
|
@ -21,19 +21,19 @@ export default {
|
|||
nodes: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -79,10 +79,10 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -14,13 +14,14 @@
|
|||
:rowsPerPageOptions="[5, 10, 25, 50]"
|
||||
paginatorTemplate="RowsPerPageDropdown FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink"
|
||||
currentPageReportTemplate="{first} to {last} of {totalRecords}"
|
||||
tableStyle="min-width: 50rem"
|
||||
>
|
||||
<template #paginatorstart>
|
||||
<Button type="button" icon="pi pi-refresh" text />
|
||||
</template>
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
<template #paginatorend>
|
||||
<Button type="button" icon="pi pi-download" text />
|
||||
</template>
|
||||
|
@ -37,15 +38,21 @@ export default {
|
|||
nodes: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25, 50]"
|
||||
<TreeTable
|
||||
:value="nodes"
|
||||
:paginator="true"
|
||||
:rows="5"
|
||||
:rowsPerPageOptions="[5, 10, 25, 50]"
|
||||
paginatorTemplate="RowsPerPageDropdown FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink"
|
||||
currentPageReportTemplate="{first} to {last} of {totalRecords}">
|
||||
currentPageReportTemplate="{first} to {last} of {totalRecords}"
|
||||
tableStyle="min-width: 50rem"
|
||||
>
|
||||
<template #paginatorstart>
|
||||
<Button type="button" icon="pi pi-refresh" text />
|
||||
</template>
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
<template #paginatorend>
|
||||
<Button type="button" icon="pi pi-download" text />
|
||||
</template>
|
||||
|
@ -54,15 +61,21 @@ export default {
|
|||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25, 50]"
|
||||
<TreeTable
|
||||
:value="nodes"
|
||||
:paginator="true"
|
||||
:rows="5"
|
||||
:rowsPerPageOptions="[5, 10, 25, 50]"
|
||||
paginatorTemplate="RowsPerPageDropdown FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink"
|
||||
currentPageReportTemplate="{first} to {last} of {totalRecords}">
|
||||
currentPageReportTemplate="{first} to {last} of {totalRecords}"
|
||||
tableStyle="min-width: 50rem"
|
||||
>
|
||||
<template #paginatorstart>
|
||||
<Button type="button" icon="pi pi-refresh" text />
|
||||
</template>
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
<template #paginatorend>
|
||||
<Button type="button" icon="pi pi-download" text />
|
||||
</template>
|
||||
|
@ -111,15 +124,21 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25, 50]"
|
||||
<TreeTable
|
||||
:value="nodes"
|
||||
:paginator="true"
|
||||
:rows="5"
|
||||
:rowsPerPageOptions="[5, 10, 25, 50]"
|
||||
paginatorTemplate="RowsPerPageDropdown FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink"
|
||||
currentPageReportTemplate="{first} to {last} of {totalRecords}">
|
||||
currentPageReportTemplate="{first} to {last} of {totalRecords}"
|
||||
tableStyle="min-width: 50rem"
|
||||
>
|
||||
<template #paginatorstart>
|
||||
<Button type="button" icon="pi pi-refresh" text />
|
||||
</template>
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
<template #paginatorend>
|
||||
<Button type="button" icon="pi pi-download" text />
|
||||
</template>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :resizableColumns="true" columnResizeMode="expand" showGridlines :tableProps="{ style: { minWidth: '50rem' } }">
|
||||
<TreeTable :value="nodes" :resizableColumns="true" columnResizeMode="expand" showGridlines tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
|
@ -23,7 +23,7 @@ export default {
|
|||
nodes: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes" :resizableColumns="true" columnResizeMode="expand" showGridlines :tableProps="{ style: { minWidth: '50rem' } }">
|
||||
<TreeTable :value="nodes" :resizableColumns="true" columnResizeMode="expand" showGridlines tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
|
@ -32,7 +32,7 @@ export default {
|
|||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :resizableColumns="true" columnResizeMode="expand" showGridlines :tableProps="{ style: { minWidth: '50rem' } }">
|
||||
<TreeTable :value="nodes" :resizableColumns="true" columnResizeMode="expand" showGridlines tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
|
@ -58,7 +58,7 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :resizableColumns="true" columnResizeMode="expand" showGridlines :tableProps="{ style: { minWidth: '50rem' } }">
|
||||
<TreeTable :value="nodes" :resizableColumns="true" columnResizeMode="expand" showGridlines tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :resizableColumns="true" showGridlines :tableProps="{ style: { minWidth: '50rem' } }">
|
||||
<TreeTable :value="nodes" :resizableColumns="true" showGridlines tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
|
@ -26,7 +26,7 @@ export default {
|
|||
nodes: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes" :resizableColumns="true" showGridlines :tableProps="{ style: { minWidth: '50rem' } }">
|
||||
<TreeTable :value="nodes" :resizableColumns="true" showGridlines tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
|
@ -35,7 +35,7 @@ export default {
|
|||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :resizableColumns="true" showGridlines :tableProps="{ style: { minWidth: '50rem' } }">
|
||||
<TreeTable :value="nodes" :resizableColumns="true" showGridlines tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
|
@ -61,7 +61,7 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" :resizableColumns="true" showGridlines :tableProps="{ style: { minWidth: '50rem' } }">
|
||||
<TreeTable :value="nodes" :resizableColumns="true" showGridlines tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<Button label="Show" icon="pi pi-external-link" @click="dialogVisible = true" />
|
||||
|
||||
<Dialog v-model:visible="dialogVisible" header="Flex Scroll" :style="{ width: '75vw' }" maximizable modal :contentStyle="{ height: '300px' }">
|
||||
<TreeTable :value="nodes" :scrollable="true" scrollHeight="flex">
|
||||
<TreeTable :value="nodes" :scrollable="true" scrollHeight="flex" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" :expander="true" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type" style="min-width: 200px"></Column>
|
||||
|
@ -36,7 +36,7 @@ export default {
|
|||
basic: `
|
||||
<Button label="Show" icon="pi pi-external-link" @click="dialogVisible = true" />
|
||||
<Dialog v-model:visible="dialogVisible" header="Flex Scroll" :style="{ width: '75vw' }" maximizable modal :contentStyle="{ height: '300px' }">
|
||||
<TreeTable :value="nodes" :scrollable="true" scrollHeight="flex">
|
||||
<TreeTable :value="nodes" :scrollable="true" scrollHeight="flex" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" :expander="true" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type" style="min-width: 200px"></Column>
|
||||
|
@ -51,7 +51,7 @@ export default {
|
|||
<div class="card flex justify-content-center">
|
||||
<Button label="Show" icon="pi pi-external-link" @click="dialogVisible = true" />
|
||||
<Dialog v-model:visible="dialogVisible" header="Flex Scroll" :style="{ width: '75vw' }" maximizable modal :contentStyle="{ height: '300px' }">
|
||||
<TreeTable :value="nodes" :scrollable="true" scrollHeight="flex">
|
||||
<TreeTable :value="nodes" :scrollable="true" scrollHeight="flex" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" :expander="true" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type" style="min-width: 200px"></Column>
|
||||
|
@ -84,7 +84,7 @@ export default {
|
|||
<div class="card flex justify-content-center">
|
||||
<Button label="Show" icon="pi pi-external-link" @click="dialogVisible = true" />
|
||||
<Dialog v-model:visible="dialogVisible" header="Flex Scroll" :style="{ width: '75vw' }" maximizable modal :contentStyle="{ height: '300px' }">
|
||||
<TreeTable :value="nodes" :scrollable="true" scrollHeight="flex">
|
||||
<TreeTable :value="nodes" :scrollable="true" scrollHeight="flex" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" :expander="true" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type" style="min-width: 200px"></Column>
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
</DocSectionText>
|
||||
<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 :value="nodes" scrollable scrollHeight="300px">
|
||||
<Column field="name" header="Name" expander frozen style="min-width: 250px" class="font-bold"></Column>
|
||||
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
|
@ -26,25 +26,25 @@ export default {
|
|||
nodes: null,
|
||||
code: {
|
||||
basic: `
|
||||
<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 :value="nodes" scrollable scrollHeight="300px">
|
||||
<Column field="name" header="Name" expander frozen style="min-width: 250px" class="font-bold"></Column>
|
||||
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<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 :value="nodes" scrollable scrollHeight="300px">
|
||||
<Column field="name" header="Name" expander frozen style="min-width: 250px" class="font-bold"></Column>
|
||||
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -67,13 +67,13 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<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 :value="nodes" scrollable scrollHeight="300px">
|
||||
<Column field="name" header="Name" expander frozen style="min-width: 250px" class="font-bold"></Column>
|
||||
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>Horizontal scrolling is enabled when the total width of columns exceeds table width.</p>
|
||||
<p>Horizontal scrollbar is displayed when table width exceeds the parent width.</p>
|
||||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="300px" scrollDirection="both">
|
||||
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
||||
<Column field="size" header="Size" style="width: 250px"></Column>
|
||||
<Column field="type" header="Type 2" style="width: 250px"></Column>
|
||||
<Column field="size" header="Size 2" style="width: 250px"></Column>
|
||||
<Column field="type" header="Type 3" style="width: 250px"></Column>
|
||||
<Column field="size" header="Size 3" style="width: 250px"></Column>
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="300px">
|
||||
<Column field="name" header="Name" expander style="min-width: 250px"></Column>
|
||||
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
|
@ -26,25 +26,25 @@ export default {
|
|||
nodes: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="300px" scrollDirection="both">
|
||||
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
||||
<Column field="size" header="Size" style="width: 250px"></Column>
|
||||
<Column field="type" header="Type 2" style="width: 250px"></Column>
|
||||
<Column field="size" header="Size 2" style="width: 250px"></Column>
|
||||
<Column field="type" header="Type 3" style="width: 250px"></Column>
|
||||
<Column field="size" header="Size 3" style="width: 250px"></Column>
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="300px">
|
||||
<Column field="name" header="Name" expander style="min-width: 250px"></Column>
|
||||
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="300px" scrollDirection="both">
|
||||
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
||||
<Column field="size" header="Size" style="width: 250px"></Column>
|
||||
<Column field="type" header="Type 2" style="width: 250px"></Column>
|
||||
<Column field="size" header="Size 2" style="width: 250px"></Column>
|
||||
<Column field="type" header="Type 3" style="width: 250px"></Column>
|
||||
<Column field="size" header="Size 3" style="width: 250px"></Column>
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="300px">
|
||||
<Column field="name" header="Name" expander style="min-width: 250px"></Column>
|
||||
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -67,13 +67,13 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="300px" scrollDirection="both">
|
||||
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
||||
<Column field="size" header="Size" style="width: 250px"></Column>
|
||||
<Column field="type" header="Type 2" style="width: 250px"></Column>
|
||||
<Column field="size" header="Size 2" style="width: 250px"></Column>
|
||||
<Column field="type" header="Type 3" style="width: 250px"></Column>
|
||||
<Column field="size" header="Size 3" style="width: 250px"></Column>
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="300px">
|
||||
<Column field="name" header="Name" expander style="min-width: 250px"></Column>
|
||||
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="270px">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="270px" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
|
@ -23,19 +23,19 @@ export default {
|
|||
nodes: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="270px">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="270px" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="270px">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="270px" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -58,10 +58,10 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="270px">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable :value="nodes" scrollable scrollHeight="270px" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
<DocSectionCode :code="introCode" hideToggleCode importCode hideStackBlitz />
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
|
@ -38,19 +38,19 @@ export default {
|
|||
},
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -74,10 +74,10 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||
<label for="input-metakey">MetaKey</label>
|
||||
</div>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
|
@ -35,10 +35,10 @@ export default {
|
|||
basic: `
|
||||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
|
@ -48,10 +48,10 @@ export default {
|
|||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||
<label for="input-metakey">MetaKey</label>
|
||||
</div>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -80,10 +80,10 @@ export default {
|
|||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||
<label for="input-metakey">MetaKey</label>
|
||||
</div>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" @nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect" :metaKeySelection="false">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" @nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect" :metaKeySelection="false" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
|
@ -24,21 +24,19 @@ export default {
|
|||
selectedKey: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="false"
|
||||
@nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" @nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect" :metaKeySelection="false" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="false"
|
||||
@nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" @nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect" :metaKeySelection="false" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
<Toast />
|
||||
</div>
|
||||
|
@ -71,11 +69,10 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="false"
|
||||
@nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" @nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect" :metaKeySelection="false" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
<Toast />
|
||||
</div>
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||
<label for="input-metakey">MetaKey</label>
|
||||
</div>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
|
@ -35,10 +35,10 @@ export default {
|
|||
basic: `
|
||||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
|
@ -48,10 +48,10 @@ export default {
|
|||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||
<label for="input-metakey">MetaKey</label>
|
||||
</div>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -80,10 +80,10 @@ export default {
|
|||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||
<label for="input-metakey">MetaKey</label>
|
||||
</div>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey">
|
||||
<Column field="name" header="Name" expander></Column>
|
||||
<Column field="size" header="Size"></Column>
|
||||
<Column field="type" header="Type"></Column>
|
||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" sortMode="multiple">
|
||||
<Column field="name" header="Name" sortable expander></Column>
|
||||
<Column field="size" header="Size" sortable></Column>
|
||||
<Column field="type" header="Type" sortable></Column>
|
||||
<TreeTable :value="nodes" sortMode="multiple" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
|
@ -23,19 +23,19 @@ export default {
|
|||
nodes: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes" sortMode="multiple">
|
||||
<Column field="name" header="Name" sortable expander></Column>
|
||||
<Column field="size" header="Size" sortable></Column>
|
||||
<Column field="type" header="Type" sortable></Column>
|
||||
<TreeTable :value="nodes" sortMode="multiple" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" sortMode="multiple">
|
||||
<Column field="name" header="Name" sortable expander></Column>
|
||||
<Column field="size" header="Size" sortable></Column>
|
||||
<Column field="type" header="Type" sortable></Column>
|
||||
<TreeTable :value="nodes" sortMode="multiple" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -58,10 +58,10 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" sortMode="multiple">
|
||||
<Column field="name" header="Name" sortable expander></Column>
|
||||
<Column field="size" header="Size" sortable></Column>
|
||||
<Column field="type" header="Type" sortable></Column>
|
||||
<TreeTable :value="nodes" sortMode="multiple" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" sortMode="multiple" removableSort>
|
||||
<Column field="name" header="Name" sortable expander></Column>
|
||||
<Column field="size" header="Size" sortable></Column>
|
||||
<Column field="type" header="Type" sortable></Column>
|
||||
<TreeTable :value="nodes" sortMode="multiple" removableSort tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
|
@ -23,19 +23,19 @@ export default {
|
|||
nodes: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes" sortMode="multiple" removableSort>
|
||||
<Column field="name" header="Name" sortable expander></Column>
|
||||
<Column field="size" header="Size" sortable></Column>
|
||||
<Column field="type" header="Type" sortable></Column>
|
||||
<TreeTable :value="nodes" sortMode="multiple" removableSort tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" sortMode="multiple" removableSort>
|
||||
<Column field="name" header="Name" sortable expander></Column>
|
||||
<Column field="size" header="Size" sortable></Column>
|
||||
<Column field="type" header="Type" sortable></Column>
|
||||
<TreeTable :value="nodes" sortMode="multiple" removableSort tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -58,10 +58,10 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes" sortMode="multiple" removableSort>
|
||||
<Column field="name" header="Name" sortable expander></Column>
|
||||
<Column field="size" header="Size" sortable></Column>
|
||||
<Column field="type" header="Type" sortable></Column>
|
||||
<TreeTable :value="nodes" sortMode="multiple" removableSort tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
</DocSectionText>
|
||||
<DeferredDemo @load="loadDemoData">
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<Column field="name" header="Name" sortable expander></Column>
|
||||
<Column field="size" header="Size" sortable></Column>
|
||||
<Column field="type" header="Type" sortable></Column>
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</DeferredDemo>
|
||||
|
@ -23,19 +23,19 @@ export default {
|
|||
nodes: null,
|
||||
code: {
|
||||
basic: `
|
||||
<TreeTable :value="nodes">
|
||||
<Column field="name" header="Name" sortable expander></Column>
|
||||
<Column field="size" header="Size" sortable></Column>
|
||||
<Column field="type" header="Type" sortable></Column>
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<Column field="name" header="Name" sortable expander></Column>
|
||||
<Column field="size" header="Size" sortable></Column>
|
||||
<Column field="type" header="Type" sortable></Column>
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -58,10 +58,10 @@ export default {
|
|||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<TreeTable :value="nodes">
|
||||
<Column field="name" header="Name" sortable expander></Column>
|
||||
<Column field="size" header="Size" sortable></Column>
|
||||
<Column field="type" header="Type" sortable></Column>
|
||||
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||
</TreeTable>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -19,7 +19,6 @@ import DynamicColumnsDoc from '@/doc/treetable/DynamicColumnsDoc.vue';
|
|||
import FilterDoc from '@/doc/treetable/FilterDoc.vue';
|
||||
import ImportDoc from '@/doc/treetable/ImportDoc.vue';
|
||||
import LazyLoadDoc from '@/doc/treetable/LazyLoadDoc.vue';
|
||||
import ResponsiveDoc from '@/doc/treetable/ResponsiveDoc.vue';
|
||||
import SizeDoc from '@/doc/treetable/SizeDoc.vue';
|
||||
import TemplateDoc from '@/doc/treetable/TemplateDoc.vue';
|
||||
import PaginatorBasicDoc from '@/doc/treetable/paginator/PaginatorBasicDoc.vue';
|
||||
|
@ -194,11 +193,6 @@ export default {
|
|||
label: 'Column Toggle',
|
||||
component: ColumnToggleDoc
|
||||
},
|
||||
{
|
||||
id: 'responsive',
|
||||
label: 'Responsive',
|
||||
component: ResponsiveDoc
|
||||
},
|
||||
{
|
||||
id: 'accessibility',
|
||||
label: 'Accessibility',
|
||||
|
|
Loading…
Reference in New Issue