Enter key support to tabview navigation
parent
1732d766d2
commit
295f7815b5
|
@ -3,7 +3,7 @@
|
||||||
<ul class="p-tabview-nav p-resest" role="tablist">
|
<ul class="p-tabview-nav p-resest" role="tablist">
|
||||||
<li role="presentation" v-for="(tab,i) of tabs" :key="tab.header"
|
<li role="presentation" v-for="(tab,i) of tabs" :key="tab.header"
|
||||||
:class="{'p-highlight': (d_activeTabIndex === i), 'p-disabled': tab.disabled}">
|
:class="{'p-highlight': (d_activeTabIndex === i), 'p-disabled': tab.disabled}">
|
||||||
<a role="tab" @click="onTabClick($event, tab, i)">
|
<a role="tab" @click="onTabClick($event, tab, i)" @keydown.enter="onTabClick($event, tab, i)">
|
||||||
<span class="p-tabview-title">{{tab.header}}</span>
|
<span class="p-tabview-title">{{tab.header}}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
</p-tabView>
|
</p-tabView>
|
||||||
|
|
||||||
<h3>Programmatic</h3>
|
<h3>Programmatic</h3>
|
||||||
<p-button icon="pi pi-chevron-left" @click="prev" class="p-button-secondary" />
|
<p-button icon="pi pi-chevron-left" @click="prev" class="p-button-secondary" style="margin-left: .25em" />
|
||||||
<p-button icon="pi pi-chevron-right" @click="next" style="margin-left: .5em" class="p-button-secondary"/>
|
<p-button icon="pi pi-chevron-right" @click="next" style="margin-left: .5em" class="p-button-secondary"/>
|
||||||
|
|
||||||
<p-tabView :activeIndex="activeIndex">
|
<p-tabView :activeIndex="activeIndex">
|
||||||
|
@ -68,6 +68,28 @@
|
||||||
</p-tabPanel>
|
</p-tabPanel>
|
||||||
<p-tabPanel header="Godfather IV" :disabled="true"></p-tabPanel>
|
<p-tabPanel header="Godfather IV" :disabled="true"></p-tabPanel>
|
||||||
</p-tabView>
|
</p-tabView>
|
||||||
|
|
||||||
|
<h3>Custom Content</h3>
|
||||||
|
<p-tabView>
|
||||||
|
<p-tabPanel>
|
||||||
|
<template slot="header">XXX Godfather I</template>
|
||||||
|
The story begins as Don Vito Corleone, the head of a New York Mafia family, overseeshis daughter's wedding. His beloved son ichael has just come home from the war,
|
||||||
|
but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is
|
||||||
|
just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
|
||||||
|
</p-tabPanel>
|
||||||
|
<p-tabPanel>
|
||||||
|
<template slot="header">XXX Godfather II</template>
|
||||||
|
Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film, TheGodfather parallels the young Vito Corleone's rise with his son Michael's spiritual fall,
|
||||||
|
deepening The Godfather's depiction of the dark side of the American dream. In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills
|
||||||
|
his family. Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy.
|
||||||
|
</p-tabPanel>
|
||||||
|
<p-tabPanel>
|
||||||
|
<template slot="header">XXX Godfather III</template>
|
||||||
|
The Godfather Part III is set in 1979 and 1980. Michael has moved back to New York and taken great strides to remove the family from crime. He turns over his New York criminal
|
||||||
|
interests to longtime enforcer Joey Zasa. He uses his wealth in an attempt to rehabilitate his reputation through numerous philanthropic acts, administered by a foundation named after his father.
|
||||||
|
A decade earlier, he gave custody of his two children to Kay, who has since remarried.
|
||||||
|
</p-tabPanel>
|
||||||
|
</p-tabView>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue