mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Merged new Docs and Demos
This commit is contained in:
parent
296cc217fb
commit
dfcc8ef4e7
1235 changed files with 130757 additions and 122640 deletions
|
@ -1,71 +1,57 @@
|
|||
<template>
|
||||
<div>
|
||||
<Head>
|
||||
<Title>Vue RadioButton Component</Title>
|
||||
<Meta name="description" content="RadioButton is an extension to standard radio button element with theming." />
|
||||
</Head>
|
||||
|
||||
<div class="content-section introduction">
|
||||
<div class="feature-intro">
|
||||
<h1>RadioButton</h1>
|
||||
<p>RadioButton is an extension to standard radio button element with theming.</p>
|
||||
</div>
|
||||
<AppDemoActions />
|
||||
</div>
|
||||
|
||||
<div class="content-section implementation">
|
||||
<div class="card">
|
||||
<h5>Basic</h5>
|
||||
<div class="field-radiobutton">
|
||||
<RadioButton v-model="city" inputId="city1" name="city" value="Chicago" />
|
||||
<label for="city1">Chicago</label>
|
||||
</div>
|
||||
<div class="field-radiobutton">
|
||||
<RadioButton v-model="city" inputId="city2" name="city" value="Los Angeles" />
|
||||
<label for="city2">Los Angeles</label>
|
||||
</div>
|
||||
<div class="field-radiobutton">
|
||||
<RadioButton v-model="city" inputId="city3" name="city" value="New York" />
|
||||
<label for="city3">New York</label>
|
||||
</div>
|
||||
<div class="field-radiobutton">
|
||||
<RadioButton v-model="city" inputId="city4" name="city" value="San Francisco" />
|
||||
<label for="city4">San Francisco</label>
|
||||
</div>
|
||||
|
||||
<h5>Dynamic Values, Preselection, Value Binding and Disabled Option</h5>
|
||||
<div v-for="category of categories" :key="category.key" class="field-radiobutton">
|
||||
<RadioButton v-model="selectedCategory" :inputId="category.key" name="category" :value="category.name" :disabled="category.key === 'R'" />
|
||||
<label :for="category.key">{{ category.name }}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<RadioButtonDoc />
|
||||
</div>
|
||||
<DocComponent title="Vue RadioButton Component" header="RadioButton" description="RadioButton is an extension to standard radio button element with theming." :componentDocs="docs" :apiDocs="['RadioButton']" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import RadioButtonDoc from './RadioButtonDoc';
|
||||
import AccessibilityDoc from '@/doc/radiobutton/AccessibilityDoc.vue';
|
||||
import DisabledDoc from '@/doc/radiobutton/DisabledDoc.vue';
|
||||
import DynamicDoc from '@/doc/radiobutton/DynamicDoc.vue';
|
||||
import GroupDoc from '@/doc/radiobutton/GroupDoc.vue';
|
||||
import ImportDoc from '@/doc/radiobutton/ImportDoc.vue';
|
||||
import InvalidDoc from '@/doc/radiobutton/InvalidDoc.vue';
|
||||
import StyleDoc from '@/doc/radiobutton/StyleDoc.vue';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
city: null,
|
||||
categories: [
|
||||
{ name: 'Accounting', key: 'A' },
|
||||
{ name: 'Marketing', key: 'M' },
|
||||
{ name: 'Production', key: 'P' },
|
||||
{ name: 'Research', key: 'R' }
|
||||
],
|
||||
selectedCategory: null
|
||||
docs: [
|
||||
{
|
||||
id: 'import',
|
||||
label: 'Import',
|
||||
component: ImportDoc
|
||||
},
|
||||
{
|
||||
id: 'group',
|
||||
label: 'Group',
|
||||
component: GroupDoc
|
||||
},
|
||||
{
|
||||
id: 'dynamic',
|
||||
label: 'Dynamic',
|
||||
component: DynamicDoc
|
||||
},
|
||||
{
|
||||
id: 'invalid',
|
||||
label: 'Invalid',
|
||||
component: InvalidDoc
|
||||
},
|
||||
{
|
||||
id: 'disabled',
|
||||
label: 'Disabled',
|
||||
component: DisabledDoc
|
||||
},
|
||||
{
|
||||
id: 'style',
|
||||
label: 'Style',
|
||||
component: StyleDoc
|
||||
},
|
||||
{
|
||||
id: 'accessibility',
|
||||
label: 'Accessibility',
|
||||
component: AccessibilityDoc
|
||||
}
|
||||
]
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.selectedCategory = this.categories[1].name;
|
||||
},
|
||||
components: {
|
||||
RadioButtonDoc: RadioButtonDoc
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue