-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e281f2
commit 7a26836
Showing
7 changed files
with
170 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<template> | ||
<DocSectionText v-bind="$attrs"> </DocSectionText> | ||
<div class="card flex justify-content-center"> | ||
<ToggleButton v-model="checked" class="w-8rem" /> | ||
</div> | ||
<DocSectionCode :code="code" /> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
checked: false, | ||
code: { | ||
basic: ` | ||
<ToggleButton v-model="checked" />`, | ||
options: ` | ||
<template> | ||
<div class="card flex justify-content-center"> | ||
<ToggleButton v-model="checked" class="w-8rem" /> | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
data() { | ||
return { | ||
checked: false | ||
} | ||
} | ||
}; | ||
<\/script>`, | ||
composition: ` | ||
<template> | ||
<div class="card flex justify-content-center"> | ||
<ToggleButton v-model="checked" class="w-8rem" /> | ||
</div> | ||
</template> | ||
<script setup> | ||
import { ref } from 'vue'; | ||
const checked = ref(false); | ||
<\/script>` | ||
} | ||
}; | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<template> | ||
<DocSectionText v-bind="$attrs"> | ||
<p>{{ $attrs.description }}</p> | ||
</DocSectionText> | ||
<div class="card"> | ||
<img class="w-full" src="https://primefaces.org/cdn/primevue/images/pt/wireframe-placeholder.jpg" /> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<template> | ||
<div class="doc-main"> | ||
<div class="doc-intro"> | ||
<h1>ToggleButton Pass Through</h1> | ||
</div> | ||
<DocSections :docs="docs" /> | ||
</div> | ||
<DocSectionNav :docs="docs" /> | ||
</template> | ||
|
||
<script> | ||
import DocApiTable from '@/components/doc/DocApiTable.vue'; | ||
import { getPTOption } from '@/components/doc/helpers/PTHelper.js'; | ||
import PtDoc from './PTDoc.vue'; | ||
import PTImage from './PTImage.vue'; | ||
export default { | ||
data() { | ||
return { | ||
docs: [ | ||
{ | ||
id: 'pt.image', | ||
label: 'Wireframe', | ||
component: PTImage | ||
}, | ||
{ | ||
id: 'pt.doc.steps', | ||
label: 'ToggleButton PT Options', | ||
component: DocApiTable, | ||
data: getPTOption('ToggleButton') | ||
}, | ||
{ | ||
id: 'pt.demo', | ||
label: 'Demo', | ||
component: PtDoc | ||
} | ||
] | ||
}; | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters