Disabled prop for ToggleButton

pull/5/head
cagataycivici 2018-12-15 16:42:45 +03:00
parent ff102323d0
commit 73a2a0d2f4
1 changed files with 2 additions and 1 deletions

View File

@ -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>