[SOLVED] toggle password with Quasar v1
-
Hi! Can’t find how to toggle password visibility and change icon.
<q-input bottom-slots filled v-model.trim="$v.password.$model" label="Pass" type="password" lazy-rules :rules="[ val => $v.password.required || 'required', val => $v.password.minLength || '6 symbols' ]" > <template v-slot:prepend> <q-icon name="fas fa-lock" /> </template> <template v-slot:append> <q-icon class="cursor-pointer" name="fas fa-eye-slash" @click="onTogglePassword (e)"/> </template>
Help, please
-
@nobilik check https://quasar.dev/vue-components/input#Example--Input-types 2nd example.
-
@metalsadman Thanks a lot man!