Password doc added
parent
eb56958a97
commit
a21e497376
|
@ -10,15 +10,22 @@
|
|||
<div class="content-section implementation">
|
||||
<Password v-model="value" />
|
||||
</div>
|
||||
|
||||
<PasswordDoc/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import PasswordDoc from './PasswordDoc';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
value: ''
|
||||
}
|
||||
},
|
||||
components: {
|
||||
'PasswordDoc': PasswordDoc
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -0,0 +1,128 @@
|
|||
<template>
|
||||
<div class="content-section documentation">
|
||||
<TabView>
|
||||
<TabPanel header="Documentation">
|
||||
<h3>Import</h3>
|
||||
<CodeHighlight lang="javascript">
|
||||
import Password from 'primevue/password';
|
||||
</CodeHighlight>
|
||||
|
||||
<h3>Getting Started</h3>
|
||||
<p>A model can be bound using the standard v-model directive.</p>
|
||||
<CodeHighlight>
|
||||
<Password v-model="value" />
|
||||
</CodeHighlight>
|
||||
|
||||
<h3>Properties</h3>
|
||||
<p>Password accepts all valid properties of an input element in addition the the custom properties below.</p>
|
||||
|
||||
<div class="doc-tablewrapper">
|
||||
<table class="doc-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Type</th>
|
||||
<th>Default</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>promptLabel</td>
|
||||
<td>string</td>
|
||||
<td>Enter a password</td>
|
||||
<td>Text to prompt password entry.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>weakLabel</td>
|
||||
<td>string</td>
|
||||
<td>Weak</td>
|
||||
<td>Text for a weak password.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>mediumLabel</td>
|
||||
<td>string</td>
|
||||
<td>Medium</td>
|
||||
<td>Text for a medium password.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>strongLabel</td>
|
||||
<td>string</td>
|
||||
<td>Strong</td>
|
||||
<td>Text for a strong password.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>feedback</td>
|
||||
<td>boolean</td>
|
||||
<td>true</td>
|
||||
<td>Whether to show the strength indicator or not.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h3>Styling</h3>
|
||||
<p>Following is the list of structural style classes, for theming classes visit <router-link to="/theming">theming</router-link> page.</p>
|
||||
<div class="doc-tablewrapper">
|
||||
<table class="doc-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Element</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>p-password-panel</td>
|
||||
<td>Container of password panel</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>p-password-meter</td>
|
||||
<td>Meter element of password strength</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>p-password-info</td>
|
||||
<td>Text to display strength</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h3>Dependencies</h3>
|
||||
<p>None.</p>
|
||||
</TabPanel>
|
||||
|
||||
<TabPanel header="Source">
|
||||
<a href="https://github.com/primefaces/primevue/tree/master/src/views/password" class="btn-viewsource" target="_blank" rel="noopener noreferrer">
|
||||
<span>View on GitHub</span>
|
||||
</a>
|
||||
<CodeHighlight>
|
||||
<template>
|
||||
<div>
|
||||
<div class="content-section introduction">
|
||||
<div class="feature-intro">
|
||||
<h1>Password</h1>
|
||||
<p>Password displays strength indicator for password fields.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content-section implementation">
|
||||
<Password v-model="value" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</CodeHighlight>
|
||||
|
||||
<CodeHighlight lang="javascript">
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
value: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
</CodeHighlight>
|
||||
</TabPanel>
|
||||
</TabView>
|
||||
</div>
|
||||
</template>
|
Loading…
Reference in New Issue