Disabled prop for ToggleButton
parent
ff102323d0
commit
73a2a0d2f4
|
@ -1,7 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="buttonClass" @click="onClick($event)">
|
<div :class="buttonClass" @click="onClick($event)">
|
||||||
<div class="p-hidden-accessible">
|
<div class="p-hidden-accessible">
|
||||||
<input ref="input" type="checkbox" :id="inputId" :name="name" :checked="value" @focus="onFocus($event)" @blur="onBlur($event)">
|
<input ref="input" type="checkbox" :id="inputId" :name="name" :checked="value" :disabled="disabled"
|
||||||
|
@focus="onFocus($event)" @blur="onBlur($event)" @keydown.enter.prevent="onClick($event)">
|
||||||
</div>
|
</div>
|
||||||
<span v-if="hasIcon" :class="iconClass"></span>
|
<span v-if="hasIcon" :class="iconClass"></span>
|
||||||
<span class="p-button-text p-unselectable-text p-c">{{label}}</span>
|
<span class="p-button-text p-unselectable-text p-c">{{label}}</span>
|
||||||
|
|
Loading…
Reference in New Issue