Update tabview demo
parent
197a780a9c
commit
c0af51709c
|
@ -32,9 +32,9 @@
|
|||
<div class="card">
|
||||
<h5>Programmatic</h5>
|
||||
<div style="padding: .5rem 0 1rem 0">
|
||||
<Button @click="activate(0)" class="p-button-secondary" label="Activate 1st" />
|
||||
<Button @click="activate(1)" class="p-button-secondary" label="Activate 2nd" />
|
||||
<Button @click="activate(2)" class="p-button-secondary" label="Activate 3rd" />
|
||||
<Button @click="activate(0)" class="p-button-text" label="Activate 1st" />
|
||||
<Button @click="activate(1)" class="p-button-text" label="Activate 2nd" />
|
||||
<Button @click="activate(2)" class="p-button-text" label="Activate 3rd" />
|
||||
</div>
|
||||
|
||||
<TabView>
|
||||
|
|
|
@ -95,9 +95,9 @@ import TabPanel from 'primevue/tabpanel';
|
|||
<h5>Programmatic Control</h5>
|
||||
<p>Tabs can be controlled programmatically using active property that defines the active tab.</p>
|
||||
<CodeHighlight>
|
||||
<Button @click="activate(0)" class="p-button-secondary" label="Activate 1st" />
|
||||
<Button @click="activate(1)" class="p-button-secondary" label="Activate 2st" />
|
||||
<Button @click="activate(2)" class="p-button-secondary" label="Activate 3st" />
|
||||
<Button @click="activate(0)" class="p-button-text" label="Activate 1st" />
|
||||
<Button @click="activate(1)" class="p-button-text" label="Activate 2st" />
|
||||
<Button @click="activate(2)" class="p-button-text" label="Activate 3st" />
|
||||
|
||||
<TabView>
|
||||
<TabPanel header="Header I" :active.sync="active[0]">
|
||||
|
@ -260,9 +260,9 @@ export default {
|
|||
<div class="card">
|
||||
<h5>Programmatic</h5>
|
||||
<div style="padding: .5rem 0 1rem 0">
|
||||
<Button @click="activate(0)" class="p-button-secondary" label="Activate 1st" />
|
||||
<Button @click="activate(1)" class="p-button-secondary" label="Activate 2nd" />
|
||||
<Button @click="activate(2)" class="p-button-secondary" label="Activate 3rd" />
|
||||
<Button @click="activate(0)" class="p-button-text" label="Activate 1st" />
|
||||
<Button @click="activate(1)" class="p-button-text" label="Activate 2nd" />
|
||||
<Button @click="activate(2)" class="p-button-text" label="Activate 3rd" />
|
||||
</div>
|
||||
|
||||
<TabView>
|
||||
|
|
Loading…
Reference in New Issue