Fixed #277 - Placeholder for Chips
parent
20e27fffc0
commit
8b538e7ce6
|
@ -7,6 +7,7 @@ export declare class Chips extends Vue {
|
||||||
addOnBlur?: boolean;
|
addOnBlur?: boolean;
|
||||||
allowDuplicate?: boolean;
|
allowDuplicate?: boolean;
|
||||||
separator?: string;
|
separator?: string;
|
||||||
|
placeholder?: string;
|
||||||
$emit(eventName: 'focus', event: Event): this;
|
$emit(eventName: 'focus', event: Event): this;
|
||||||
$emit(eventName: 'blur', event: Event): this;
|
$emit(eventName: 'blur', event: Event): this;
|
||||||
$emit(eventName: 'input', value: any[]): this;
|
$emit(eventName: 'input', value: any[]): this;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
</slot>
|
</slot>
|
||||||
</li>
|
</li>
|
||||||
<li class="p-chips-input-token">
|
<li class="p-chips-input-token">
|
||||||
<input ref="input" type="text" class="p-inputtext p-component" @focus="onFocus($event)" @blur="onBlur($event)"
|
<input ref="input" type="text" class="p-inputtext p-component" @focus="onFocus($event)" @blur="onBlur($event)" :placeholder="placeholder"
|
||||||
@keydown="onKeyDown($event)" @paste="onPaste($event)" :disabled="$attrs.disabled || maxedOut" :aria-labelledby="ariaLabelledBy">
|
@keydown="onKeyDown($event)" @paste="onPaste($event)" :disabled="$attrs.disabled || maxedOut" :aria-labelledby="ariaLabelledBy">
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -41,6 +41,10 @@ export default {
|
||||||
allowDuplicate: {
|
allowDuplicate: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
|
},
|
||||||
|
placeholder: {
|
||||||
|
type: String,
|
||||||
|
default: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|
|
@ -76,6 +76,12 @@ import Chips from 'primevue/chips';
|
||||||
<td>string</td>
|
<td>string</td>
|
||||||
<td>null</td>
|
<td>null</td>
|
||||||
<td>Separator char to add an item when pressed in addition to the enter key. Currently only possible value is ","</td>
|
<td>Separator char to add an item when pressed in addition to the enter key. Currently only possible value is ","</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>placeholder</td>
|
||||||
|
<td>string</td>
|
||||||
|
<td>null</td>
|
||||||
|
<td>Specifies a short hint that describes the expected value of the input field.</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue