TreeTable doc updates
parent
5cb78b9b3c
commit
f3f32b98fd
File diff suppressed because it is too large
Load Diff
|
@ -4,10 +4,10 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -23,19 +23,19 @@ export default {
|
||||||
nodes: null,
|
nodes: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -58,10 +58,10 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div style="text-align: left">
|
<div style="text-align: left">
|
||||||
<MultiSelect :modelValue="selectedColumns" @update:modelValue="onToggle" :options="columns" optionLabel="header" class="w-full sm:w-16rem" display="chip" />
|
<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,
|
columns: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div style="text-align:left">
|
<div style="text-align:left">
|
||||||
<MultiSelect :modelValue="selectedColumns" @update:modelValue="onToggle" :options="columns" optionLabel="header" class="w-full sm:w-16rem" display="chip"/>
|
<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: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div style="text-align:left">
|
<div style="text-align:left">
|
||||||
<MultiSelect :modelValue="selectedColumns" @update:modelValue="onToggle" :options="columns" optionLabel="header" class="w-full sm:w-16rem" display="chip"/>
|
<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: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div style="text-align:left">
|
<div style="text-align:left">
|
||||||
<MultiSelect :modelValue="selectedColumns" @update:modelValue="onToggle" :options="columns" optionLabel="header" class="w-full sm:w-16rem" display="chip"/>
|
<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">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Button @click="toggleApplications" label="Toggle Applications" />
|
<Button @click="toggleApplications" label="Toggle Applications" />
|
||||||
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes" class="mt-4">
|
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes" class="mt-4" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -26,20 +26,20 @@ export default {
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<Button @click="toggleApplications" label="Toggle Applications" />
|
<Button @click="toggleApplications" label="Toggle Applications" />
|
||||||
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes">
|
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes" class="mt-4" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Button @click="toggleApplications" label="Toggle Applications" />
|
<Button @click="toggleApplications" label="Toggle Applications" />
|
||||||
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes">
|
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes" class="mt-4" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -74,10 +74,10 @@ export default {
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<Button @click="toggleApplications" label="Toggle Applications" />
|
<Button @click="toggleApplications" label="Toggle Applications" />
|
||||||
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes">
|
<TreeTable v-model:expandedKeys="expandedKeys" :value="nodes" class="mt-4" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<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>
|
<Column v-for="col of columns" :key="col.field" :field="col.field" :header="col.header" :expander="col.expander"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
|
@ -22,14 +22,14 @@ export default {
|
||||||
columns: null,
|
columns: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
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>
|
<Column v-for="col of columns" :key="col.field" :field="col.field" :header="col.header" :expander="col.expander"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<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>
|
<Column v-for="col of columns" :key="col.field" :field="col.field" :header="col.header" :expander="col.expander"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
|
@ -61,7 +61,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<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>
|
<Column v-for="col of columns" :key="col.field" :field="col.field" :header="col.header" :expander="col.expander"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,26 +13,24 @@
|
||||||
</div>
|
</div>
|
||||||
<TreeTable :value="nodes" :filters="filters" :filterMode="filterMode.value">
|
<TreeTable :value="nodes" :filters="filters" :filterMode="filterMode.value">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="text-right">
|
<div class="flex justify-content-end">
|
||||||
<IconField>
|
<IconField>
|
||||||
<InputIcon>
|
<InputIcon class="pi pi-search" />
|
||||||
<i class="pi pi-search" />
|
|
||||||
</InputIcon>
|
|
||||||
<InputText v-model="filters['global']" placeholder="Global Search" />
|
<InputText v-model="filters['global']" placeholder="Global Search" />
|
||||||
</IconField>
|
</IconField>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name" expander>
|
<Column field="name" header="Name" expander style="min-width: 12rem">
|
||||||
<template #filter>
|
<template #filter>
|
||||||
<InputText v-model="filters['name']" type="text" class="p-column-filter" placeholder="Filter by name" />
|
<InputText v-model="filters['name']" type="text" class="p-column-filter" placeholder="Filter by name" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="size" header="Size">
|
<Column field="size" header="Size" style="min-width: 12rem">
|
||||||
<template #filter>
|
<template #filter>
|
||||||
<InputText v-model="filters['size']" type="text" class="p-column-filter" placeholder="Filter by size" />
|
<InputText v-model="filters['size']" type="text" class="p-column-filter" placeholder="Filter by size" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="type" header="Type">
|
<Column field="type" header="Type" style="min-width: 12rem">
|
||||||
<template #filter>
|
<template #filter>
|
||||||
<InputText v-model="filters['type']" type="text" class="p-column-filter" placeholder="Filter by type" />
|
<InputText v-model="filters['type']" type="text" class="p-column-filter" placeholder="Filter by type" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -61,26 +59,24 @@ export default {
|
||||||
<SelectButton v-model="filterMode" optionLabel="label" dataKey="label" :options="filterOptions" />
|
<SelectButton v-model="filterMode" optionLabel="label" dataKey="label" :options="filterOptions" />
|
||||||
<TreeTable :value="nodes" :filters="filters" :filterMode="filterMode.value">
|
<TreeTable :value="nodes" :filters="filters" :filterMode="filterMode.value">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="text-right">
|
<div class="flex justify-content-end">
|
||||||
<IconField>
|
<IconField>
|
||||||
<InputIcon>
|
<InputIcon class="pi pi-search" />
|
||||||
<i class="pi pi-search" />
|
|
||||||
</InputIcon>
|
|
||||||
<InputText v-model="filters['global']" placeholder="Global Search" />
|
<InputText v-model="filters['global']" placeholder="Global Search" />
|
||||||
</IconField>
|
</IconField>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name" expander>
|
<Column field="name" header="Name" expander style="min-width: 12rem">
|
||||||
<template #filter>
|
<template #filter>
|
||||||
<InputText v-model="filters['name']" type="text" class="p-column-filter" placeholder="Filter by name" />
|
<InputText v-model="filters['name']" type="text" class="p-column-filter" placeholder="Filter by name" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="size" header="Size">
|
<Column field="size" header="Size" style="min-width: 12rem">
|
||||||
<template #filter>
|
<template #filter>
|
||||||
<InputText v-model="filters['size']" type="text" class="p-column-filter" placeholder="Filter by size" />
|
<InputText v-model="filters['size']" type="text" class="p-column-filter" placeholder="Filter by size" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="type" header="Type">
|
<Column field="type" header="Type" style="min-width: 12rem">
|
||||||
<template #filter>
|
<template #filter>
|
||||||
<InputText v-model="filters['type']" type="text" class="p-column-filter" placeholder="Filter by type" />
|
<InputText v-model="filters['type']" type="text" class="p-column-filter" placeholder="Filter by type" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -95,26 +91,24 @@ export default {
|
||||||
</div>
|
</div>
|
||||||
<TreeTable :value="nodes" :filters="filters" :filterMode="filterMode.value">
|
<TreeTable :value="nodes" :filters="filters" :filterMode="filterMode.value">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="text-right">
|
<div class="flex justify-content-end">
|
||||||
<IconField>
|
<IconField>
|
||||||
<InputIcon>
|
<InputIcon class="pi pi-search" />
|
||||||
<i class="pi pi-search" />
|
|
||||||
</InputIcon>
|
|
||||||
<InputText v-model="filters['global']" placeholder="Global Search" />
|
<InputText v-model="filters['global']" placeholder="Global Search" />
|
||||||
</IconField>
|
</IconField>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name" expander>
|
<Column field="name" header="Name" expander style="min-width: 12rem">
|
||||||
<template #filter>
|
<template #filter>
|
||||||
<InputText v-model="filters['name']" type="text" class="p-column-filter" placeholder="Filter by name" />
|
<InputText v-model="filters['name']" type="text" class="p-column-filter" placeholder="Filter by name" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="size" header="Size">
|
<Column field="size" header="Size" style="min-width: 12rem">
|
||||||
<template #filter>
|
<template #filter>
|
||||||
<InputText v-model="filters['size']" type="text" class="p-column-filter" placeholder="Filter by size" />
|
<InputText v-model="filters['size']" type="text" class="p-column-filter" placeholder="Filter by size" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="type" header="Type">
|
<Column field="type" header="Type" style="min-width: 12rem">
|
||||||
<template #filter>
|
<template #filter>
|
||||||
<InputText v-model="filters['type']" type="text" class="p-column-filter" placeholder="Filter by type" />
|
<InputText v-model="filters['type']" type="text" class="p-column-filter" placeholder="Filter by type" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -152,26 +146,24 @@ export default {
|
||||||
</div>
|
</div>
|
||||||
<TreeTable :value="nodes" :filters="filters" :filterMode="filterMode.value">
|
<TreeTable :value="nodes" :filters="filters" :filterMode="filterMode.value">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="text-right">
|
<div class="flex justify-content-end">
|
||||||
<IconField>
|
<IconField>
|
||||||
<InputIcon>
|
<InputIcon class="pi pi-search" />
|
||||||
<i class="pi pi-search" />
|
|
||||||
</InputIcon>
|
|
||||||
<InputText v-model="filters['global']" placeholder="Global Search" />
|
<InputText v-model="filters['global']" placeholder="Global Search" />
|
||||||
</IconField>
|
</IconField>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name" expander>
|
<Column field="name" header="Name" expander style="min-width: 12rem">
|
||||||
<template #filter>
|
<template #filter>
|
||||||
<InputText v-model="filters['name']" type="text" class="p-column-filter" placeholder="Filter by name" />
|
<InputText v-model="filters['name']" type="text" class="p-column-filter" placeholder="Filter by name" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="size" header="Size">
|
<Column field="size" header="Size" style="min-width: 12rem">
|
||||||
<template #filter>
|
<template #filter>
|
||||||
<InputText v-model="filters['size']" type="text" class="p-column-filter" placeholder="Filter by size" />
|
<InputText v-model="filters['size']" type="text" class="p-column-filter" placeholder="Filter by size" />
|
||||||
</template>
|
</template>
|
||||||
</Column>
|
</Column>
|
||||||
<Column field="type" header="Type">
|
<Column field="type" header="Type" style="min-width: 12rem">
|
||||||
<template #filter>
|
<template #filter>
|
||||||
<InputText v-model="filters['type']" type="text" class="p-column-filter" placeholder="Filter by type" />
|
<InputText v-model="filters['type']" type="text" class="p-column-filter" placeholder="Filter by type" />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<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="name" header="Name" expander></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type"></Column>
|
||||||
|
@ -33,7 +33,7 @@ export default {
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<TreeTable :value="nodes" :lazy="true" :paginator="true" :rows="rows" :loading="loading"
|
<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="name" header="Name" expander></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type"></Column>
|
||||||
|
@ -43,7 +43,7 @@ export default {
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" :lazy="true" :paginator="true" :rows="rows" :loading="loading"
|
<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="name" header="Name" expander></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type"></Column>
|
||||||
|
@ -144,7 +144,7 @@ export default {
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<TreeTable :value="nodes" :lazy="true" :paginator="true" :rows="rows" :loading="loading"
|
<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="name" header="Name" :expander="true"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size"></Column>
|
||||||
<Column field="type" header="Type"></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">
|
<div class="flex justify-content-center mb-4">
|
||||||
<SelectButton v-model="size" :options="sizeOptions" optionLabel="label" dataKey="label" />
|
<SelectButton v-model="size" :options="sizeOptions" optionLabel="label" dataKey="label" />
|
||||||
</div>
|
</div>
|
||||||
<TreeTable :value="nodes" :class="`p-treetable-${size.class}`">
|
<TreeTable :value="nodes" :size="size.value" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -26,25 +26,25 @@ export default {
|
||||||
nodes: null,
|
nodes: null,
|
||||||
size: { label: 'Normal', value: 'normal' },
|
size: { label: 'Normal', value: 'normal' },
|
||||||
sizeOptions: [
|
sizeOptions: [
|
||||||
{ label: 'Small', value: 'small', class: 'sm' },
|
{ label: 'Small', value: 'small' },
|
||||||
{ label: 'Normal', value: 'normal' },
|
{ label: 'Normal', value: 'normal' },
|
||||||
{ label: 'Large', value: 'large', class: 'lg' }
|
{ label: 'Large', value: 'large' }
|
||||||
],
|
],
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<TreeTable :value="nodes" :class="\`p-treetable-\${size.class}\`">
|
<TreeTable :value="nodes" :size="size.value" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" :class="\`p-treetable-\${size.class}\`">
|
<TreeTable :value="nodes" :size="size.value" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -73,10 +73,10 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" :class="\`p-treetable-\${size.class}\`">
|
<TreeTable :value="nodes" :size="size.value" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -4,14 +4,14 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="text-xl font-bold">File Viewer</div>
|
<div class="text-xl font-bold">File Viewer</div>
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name" :expander="true"></Column>
|
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 150px"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 150px"></Column>
|
||||||
<Column headerStyle="width: 10rem">
|
<Column style="width: 10rem">
|
||||||
<template #body>
|
<template #body>
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
<Button type="button" icon="pi pi-search" rounded />
|
<Button type="button" icon="pi pi-search" rounded />
|
||||||
|
@ -39,14 +39,14 @@ export default {
|
||||||
nodes: null,
|
nodes: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="text-xl font-bold">File Viewer</div>
|
<div class="text-xl font-bold">File Viewer</div>
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name" :expander="true"></Column>
|
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 150px"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 150px"></Column>
|
||||||
<Column headerStyle="width: 10rem">
|
<Column style="width: 10rem">
|
||||||
<template #body>
|
<template #body>
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
<Button type="button" icon="pi pi-search" rounded />
|
<Button type="button" icon="pi pi-search" rounded />
|
||||||
|
@ -64,14 +64,14 @@ export default {
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="text-xl font-bold">File Viewer</div>
|
<div class="text-xl font-bold">File Viewer</div>
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name" :expander="true"></Column>
|
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 150px"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 150px"></Column>
|
||||||
<Column headerStyle="width: 10rem">
|
<Column style="width: 10rem">
|
||||||
<template #body>
|
<template #body>
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
<Button type="button" icon="pi pi-search" rounded/>
|
<Button type="button" icon="pi pi-search" rounded/>
|
||||||
|
@ -106,14 +106,14 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="text-xl font-bold">File Viewer</div>
|
<div class="text-xl font-bold">File Viewer</div>
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name" :expander="true"></Column>
|
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 150px"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 150px"></Column>
|
||||||
<Column headerStyle="width: 10rem">
|
<Column style="width: 10rem">
|
||||||
<template #body>
|
<template #body>
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-wrap gap-2">
|
||||||
<Button type="button" icon="pi pi-search" rounded/>
|
<Button type="button" icon="pi pi-search" rounded/>
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]">
|
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -21,19 +21,19 @@ export default {
|
||||||
nodes: null,
|
nodes: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]">
|
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]">
|
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -79,10 +79,10 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]">
|
<TreeTable :value="nodes" :paginator="true" :rows="5" :rowsPerPageOptions="[5, 10, 25]" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -14,13 +14,14 @@
|
||||||
:rowsPerPageOptions="[5, 10, 25, 50]"
|
:rowsPerPageOptions="[5, 10, 25, 50]"
|
||||||
paginatorTemplate="RowsPerPageDropdown FirstPageLink PrevPageLink CurrentPageReport NextPageLink LastPageLink"
|
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>
|
<template #paginatorstart>
|
||||||
<Button type="button" icon="pi pi-refresh" text />
|
<Button type="button" icon="pi pi-refresh" text />
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
<template #paginatorend>
|
<template #paginatorend>
|
||||||
<Button type="button" icon="pi pi-download" text />
|
<Button type="button" icon="pi pi-download" text />
|
||||||
</template>
|
</template>
|
||||||
|
@ -37,15 +38,21 @@ export default {
|
||||||
nodes: null,
|
nodes: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
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"
|
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>
|
<template #paginatorstart>
|
||||||
<Button type="button" icon="pi pi-refresh" text />
|
<Button type="button" icon="pi pi-refresh" text />
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
<template #paginatorend>
|
<template #paginatorend>
|
||||||
<Button type="button" icon="pi pi-download" text />
|
<Button type="button" icon="pi pi-download" text />
|
||||||
</template>
|
</template>
|
||||||
|
@ -54,15 +61,21 @@ export default {
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<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"
|
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>
|
<template #paginatorstart>
|
||||||
<Button type="button" icon="pi pi-refresh" text />
|
<Button type="button" icon="pi pi-refresh" text />
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
<template #paginatorend>
|
<template #paginatorend>
|
||||||
<Button type="button" icon="pi pi-download" text />
|
<Button type="button" icon="pi pi-download" text />
|
||||||
</template>
|
</template>
|
||||||
|
@ -111,15 +124,21 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<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"
|
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>
|
<template #paginatorstart>
|
||||||
<Button type="button" icon="pi pi-refresh" text />
|
<Button type="button" icon="pi pi-refresh" text />
|
||||||
</template>
|
</template>
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
<template #paginatorend>
|
<template #paginatorend>
|
||||||
<Button type="button" icon="pi pi-download" text />
|
<Button type="button" icon="pi pi-download" text />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<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="name" header="Name" expander></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type"></Column>
|
||||||
|
@ -23,7 +23,7 @@ export default {
|
||||||
nodes: null,
|
nodes: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
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="name" header="Name" expander></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type"></Column>
|
||||||
|
@ -32,7 +32,7 @@ export default {
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<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="name" header="Name" expander></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type"></Column>
|
||||||
|
@ -58,7 +58,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<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="name" header="Name" expander></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type"></Column>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<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="name" header="Name" expander></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type"></Column>
|
||||||
|
@ -26,7 +26,7 @@ export default {
|
||||||
nodes: null,
|
nodes: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
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="name" header="Name" expander></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type"></Column>
|
||||||
|
@ -35,7 +35,7 @@ export default {
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<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="name" header="Name" expander></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type"></Column>
|
||||||
|
@ -61,7 +61,7 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<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="name" header="Name" expander></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type"></Column>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<Button label="Show" icon="pi pi-external-link" @click="dialogVisible = true" />
|
<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' }">
|
<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="name" header="Name" :expander="true" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size" 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>
|
<Column field="type" header="Type" style="min-width: 200px"></Column>
|
||||||
|
@ -36,7 +36,7 @@ export default {
|
||||||
basic: `
|
basic: `
|
||||||
<Button label="Show" icon="pi pi-external-link" @click="dialogVisible = true" />
|
<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' }">
|
<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="name" header="Name" :expander="true" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size" 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>
|
<Column field="type" header="Type" style="min-width: 200px"></Column>
|
||||||
|
@ -51,7 +51,7 @@ export default {
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-content-center">
|
||||||
<Button label="Show" icon="pi pi-external-link" @click="dialogVisible = true" />
|
<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' }">
|
<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="name" header="Name" :expander="true" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size" 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>
|
<Column field="type" header="Type" style="min-width: 200px"></Column>
|
||||||
|
@ -84,7 +84,7 @@ export default {
|
||||||
<div class="card flex justify-content-center">
|
<div class="card flex justify-content-center">
|
||||||
<Button label="Show" icon="pi pi-external-link" @click="dialogVisible = true" />
|
<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' }">
|
<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="name" header="Name" :expander="true" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size" 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>
|
<Column field="type" header="Type" style="min-width: 200px"></Column>
|
||||||
|
|
|
@ -4,13 +4,13 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" scrollable scrollHeight="300px" scrollDirection="both">
|
<TreeTable :value="nodes" scrollable scrollHeight="300px">
|
||||||
<Column field="name" header="Name" expander frozen style="width: 250px; height: 57px"></Column>
|
<Column field="name" header="Name" expander frozen style="min-width: 250px" class="font-bold"></Column>
|
||||||
<Column field="size" header="Size" style="width: 250px; height: 57px"></Column>
|
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 2" style="width: 250px; height: 57px"></Column>
|
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 2" style="width: 250px; height: 57px"></Column>
|
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 3" style="width: 250px; height: 57px"></Column>
|
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 3" style="width: 250px; height: 57px"></Column>
|
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -26,25 +26,25 @@ export default {
|
||||||
nodes: null,
|
nodes: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<TreeTable :value="nodes" scrollable scrollHeight="300px" scrollDirection="both">
|
<TreeTable :value="nodes" scrollable scrollHeight="300px">
|
||||||
<Column field="name" header="Name" expander frozen style="width: 250px; height: 57px"></Column>
|
<Column field="name" header="Name" expander frozen style="min-width: 250px" class="font-bold"></Column>
|
||||||
<Column field="size" header="Size" style="width: 250px; height: 57px"></Column>
|
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 2" style="width: 250px; height: 57px"></Column>
|
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 2" style="width: 250px; height: 57px"></Column>
|
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 3" style="width: 250px; height: 57px"></Column>
|
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 3" style="width: 250px; height: 57px"></Column>
|
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" scrollable scrollHeight="300px" scrollDirection="both">
|
<TreeTable :value="nodes" scrollable scrollHeight="300px">
|
||||||
<Column field="name" header="Name" expander frozen style="width: 250px; height: 57px"></Column>
|
<Column field="name" header="Name" expander frozen style="min-width: 250px" class="font-bold"></Column>
|
||||||
<Column field="size" header="Size" style="width: 250px; height: 57px"></Column>
|
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 2" style="width: 250px; height: 57px"></Column>
|
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 2" style="width: 250px; height: 57px"></Column>
|
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 3" style="width: 250px; height: 57px"></Column>
|
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 3" style="width: 250px; height: 57px"></Column>
|
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -67,13 +67,13 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" scrollable scrollHeight="300px" scrollDirection="both">
|
<TreeTable :value="nodes" scrollable scrollHeight="300px">
|
||||||
<Column field="name" header="Name" expander frozen style="width: 250px; height: 57px"></Column>
|
<Column field="name" header="Name" expander frozen style="min-width: 250px" class="font-bold"></Column>
|
||||||
<Column field="size" header="Size" style="width: 250px; height: 57px"></Column>
|
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 2" style="width: 250px; height: 57px"></Column>
|
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 2" style="width: 250px; height: 57px"></Column>
|
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 3" style="width: 250px; height: 57px"></Column>
|
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 3" style="width: 250px; height: 57px"></Column>
|
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
<DocSectionText v-bind="$attrs">
|
<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>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" scrollable scrollHeight="300px" scrollDirection="both">
|
<TreeTable :value="nodes" scrollable scrollHeight="300px">
|
||||||
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
<Column field="name" header="Name" expander style="min-width: 250px"></Column>
|
||||||
<Column field="size" header="Size" style="width: 250px"></Column>
|
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 2" style="width: 250px"></Column>
|
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 2" style="width: 250px"></Column>
|
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 3" style="width: 250px"></Column>
|
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 3" style="width: 250px"></Column>
|
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -26,25 +26,25 @@ export default {
|
||||||
nodes: null,
|
nodes: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<TreeTable :value="nodes" scrollable scrollHeight="300px" scrollDirection="both">
|
<TreeTable :value="nodes" scrollable scrollHeight="300px">
|
||||||
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
<Column field="name" header="Name" expander style="min-width: 250px"></Column>
|
||||||
<Column field="size" header="Size" style="width: 250px"></Column>
|
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 2" style="width: 250px"></Column>
|
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 2" style="width: 250px"></Column>
|
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 3" style="width: 250px"></Column>
|
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 3" style="width: 250px"></Column>
|
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" scrollable scrollHeight="300px" scrollDirection="both">
|
<TreeTable :value="nodes" scrollable scrollHeight="300px">
|
||||||
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
<Column field="name" header="Name" expander style="min-width: 250px"></Column>
|
||||||
<Column field="size" header="Size" style="width: 250px"></Column>
|
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 2" style="width: 250px"></Column>
|
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 2" style="width: 250px"></Column>
|
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 3" style="width: 250px"></Column>
|
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 3" style="width: 250px"></Column>
|
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -67,13 +67,13 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" scrollable scrollHeight="300px" scrollDirection="both">
|
<TreeTable :value="nodes" scrollable scrollHeight="300px">
|
||||||
<Column field="name" header="Name" expander style="width: 250px"></Column>
|
<Column field="name" header="Name" expander style="min-width: 250px"></Column>
|
||||||
<Column field="size" header="Size" style="width: 250px"></Column>
|
<Column field="size" header="Size" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 2" style="width: 250px"></Column>
|
<Column field="type" header="Type 2" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 2" style="width: 250px"></Column>
|
<Column field="size" header="Size 2" style="min-width: 200px"></Column>
|
||||||
<Column field="type" header="Type 3" style="width: 250px"></Column>
|
<Column field="type" header="Type 3" style="min-width: 200px"></Column>
|
||||||
<Column field="size" header="Size 3" style="width: 250px"></Column>
|
<Column field="size" header="Size 3" style="min-width: 200px"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" scrollable scrollHeight="270px">
|
<TreeTable :value="nodes" scrollable scrollHeight="270px" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -23,19 +23,19 @@ export default {
|
||||||
nodes: null,
|
nodes: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<TreeTable :value="nodes" scrollable scrollHeight="270px">
|
<TreeTable :value="nodes" scrollable scrollHeight="270px" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" scrollable scrollHeight="270px">
|
<TreeTable :value="nodes" scrollable scrollHeight="270px" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -58,10 +58,10 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" scrollable scrollHeight="270px">
|
<TreeTable :value="nodes" scrollable scrollHeight="270px" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
<DocSectionCode :code="introCode" hideToggleCode importCode hideStackBlitz />
|
<DocSectionCode :code="introCode" hideToggleCode importCode hideStackBlitz />
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox">
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -38,19 +38,19 @@ export default {
|
||||||
},
|
},
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox">
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox">
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -74,10 +74,10 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox">
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="checkbox" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||||
<label for="input-metakey">MetaKey</label>
|
<label for="input-metakey">MetaKey</label>
|
||||||
</div>
|
</div>
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey">
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -35,10 +35,10 @@ export default {
|
||||||
basic: `
|
basic: `
|
||||||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||||
|
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey">
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
|
@ -48,10 +48,10 @@ export default {
|
||||||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||||
<label for="input-metakey">MetaKey</label>
|
<label for="input-metakey">MetaKey</label>
|
||||||
</div>
|
</div>
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey">
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -80,10 +80,10 @@ export default {
|
||||||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||||
<label for="input-metakey">MetaKey</label>
|
<label for="input-metakey">MetaKey</label>
|
||||||
</div>
|
</div>
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey">
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="multiple" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" @nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect" :metaKeySelection="false">
|
<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></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -24,21 +24,19 @@ export default {
|
||||||
selectedKey: null,
|
selectedKey: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="false"
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" @nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect" :metaKeySelection="false" tableStyle="min-width: 50rem">
|
||||||
@nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect">
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="false"
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" @nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect" :metaKeySelection="false" tableStyle="min-width: 50rem">
|
||||||
@nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect">
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
<Toast />
|
<Toast />
|
||||||
</div>
|
</div>
|
||||||
|
@ -71,11 +69,10 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="false"
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" @nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect" :metaKeySelection="false" tableStyle="min-width: 50rem">
|
||||||
@nodeSelect="onNodeSelect" @nodeUnselect="onNodeUnselect">
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
<Toast />
|
<Toast />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||||
<label for="input-metakey">MetaKey</label>
|
<label for="input-metakey">MetaKey</label>
|
||||||
</div>
|
</div>
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey">
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -35,10 +35,10 @@ export default {
|
||||||
basic: `
|
basic: `
|
||||||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||||
|
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey">
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
|
@ -48,10 +48,10 @@ export default {
|
||||||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||||
<label for="input-metakey">MetaKey</label>
|
<label for="input-metakey">MetaKey</label>
|
||||||
</div>
|
</div>
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey">
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -80,10 +80,10 @@ export default {
|
||||||
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
<ToggleSwitch v-model="metaKey" inputId="input-metakey" />
|
||||||
<label for="input-metakey">MetaKey</label>
|
<label for="input-metakey">MetaKey</label>
|
||||||
</div>
|
</div>
|
||||||
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey">
|
<TreeTable v-model:selectionKeys="selectedKey" :value="nodes" selectionMode="single" :metaKeySelection="metaKey" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" expander></Column>
|
<Column field="name" header="Name" expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size"></Column>
|
<Column field="size" header="Size" style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type"></Column>
|
<Column field="type" header="Type" style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" sortMode="multiple">
|
<TreeTable :value="nodes" sortMode="multiple" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" sortable expander></Column>
|
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size" sortable></Column>
|
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type" sortable></Column>
|
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -23,19 +23,19 @@ export default {
|
||||||
nodes: null,
|
nodes: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<TreeTable :value="nodes" sortMode="multiple">
|
<TreeTable :value="nodes" sortMode="multiple" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" sortable expander></Column>
|
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size" sortable></Column>
|
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type" sortable></Column>
|
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" sortMode="multiple">
|
<TreeTable :value="nodes" sortMode="multiple" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" sortable expander></Column>
|
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size" sortable></Column>
|
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type" sortable></Column>
|
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -58,10 +58,10 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" sortMode="multiple">
|
<TreeTable :value="nodes" sortMode="multiple" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" sortable expander></Column>
|
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size" sortable></Column>
|
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type" sortable></Column>
|
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" sortMode="multiple" removableSort>
|
<TreeTable :value="nodes" sortMode="multiple" removableSort tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" sortable expander></Column>
|
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size" sortable></Column>
|
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type" sortable></Column>
|
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -23,19 +23,19 @@ export default {
|
||||||
nodes: null,
|
nodes: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<TreeTable :value="nodes" sortMode="multiple" removableSort>
|
<TreeTable :value="nodes" sortMode="multiple" removableSort tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" sortable expander></Column>
|
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size" sortable></Column>
|
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type" sortable></Column>
|
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" sortMode="multiple" removableSort>
|
<TreeTable :value="nodes" sortMode="multiple" removableSort tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" sortable expander></Column>
|
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size" sortable></Column>
|
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type" sortable></Column>
|
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -58,10 +58,10 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes" sortMode="multiple" removableSort>
|
<TreeTable :value="nodes" sortMode="multiple" removableSort tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" sortable expander></Column>
|
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size" sortable></Column>
|
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type" sortable></Column>
|
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
<DeferredDemo @load="loadDemoData">
|
<DeferredDemo @load="loadDemoData">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" sortable expander></Column>
|
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size" sortable></Column>
|
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type" sortable></Column>
|
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</DeferredDemo>
|
</DeferredDemo>
|
||||||
|
@ -23,19 +23,19 @@ export default {
|
||||||
nodes: null,
|
nodes: null,
|
||||||
code: {
|
code: {
|
||||||
basic: `
|
basic: `
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" sortable expander></Column>
|
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size" sortable></Column>
|
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type" sortable></Column>
|
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
`,
|
`,
|
||||||
options: `
|
options: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" sortable expander></Column>
|
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size" sortable></Column>
|
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type" sortable></Column>
|
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -58,10 +58,10 @@ export default {
|
||||||
composition: `
|
composition: `
|
||||||
<template>
|
<template>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<TreeTable :value="nodes">
|
<TreeTable :value="nodes" tableStyle="min-width: 50rem">
|
||||||
<Column field="name" header="Name" sortable expander></Column>
|
<Column field="name" header="Name" sortable expander style="width: 34%"></Column>
|
||||||
<Column field="size" header="Size" sortable></Column>
|
<Column field="size" header="Size" sortable style="width: 33%"></Column>
|
||||||
<Column field="type" header="Type" sortable></Column>
|
<Column field="type" header="Type" sortable style="width: 33%"></Column>
|
||||||
</TreeTable>
|
</TreeTable>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -19,7 +19,6 @@ import DynamicColumnsDoc from '@/doc/treetable/DynamicColumnsDoc.vue';
|
||||||
import FilterDoc from '@/doc/treetable/FilterDoc.vue';
|
import FilterDoc from '@/doc/treetable/FilterDoc.vue';
|
||||||
import ImportDoc from '@/doc/treetable/ImportDoc.vue';
|
import ImportDoc from '@/doc/treetable/ImportDoc.vue';
|
||||||
import LazyLoadDoc from '@/doc/treetable/LazyLoadDoc.vue';
|
import LazyLoadDoc from '@/doc/treetable/LazyLoadDoc.vue';
|
||||||
import ResponsiveDoc from '@/doc/treetable/ResponsiveDoc.vue';
|
|
||||||
import SizeDoc from '@/doc/treetable/SizeDoc.vue';
|
import SizeDoc from '@/doc/treetable/SizeDoc.vue';
|
||||||
import TemplateDoc from '@/doc/treetable/TemplateDoc.vue';
|
import TemplateDoc from '@/doc/treetable/TemplateDoc.vue';
|
||||||
import PaginatorBasicDoc from '@/doc/treetable/paginator/PaginatorBasicDoc.vue';
|
import PaginatorBasicDoc from '@/doc/treetable/paginator/PaginatorBasicDoc.vue';
|
||||||
|
@ -194,11 +193,6 @@ export default {
|
||||||
label: 'Column Toggle',
|
label: 'Column Toggle',
|
||||||
component: ColumnToggleDoc
|
component: ColumnToggleDoc
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'responsive',
|
|
||||||
label: 'Responsive',
|
|
||||||
component: ResponsiveDoc
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: 'accessibility',
|
id: 'accessibility',
|
||||||
label: 'Accessibility',
|
label: 'Accessibility',
|
||||||
|
|
Loading…
Reference in New Issue