Closed csakis closed 8 months ago
Hi, as far as i know ToggleButton does not support the onClass and offClass ...
Yes. I know, but the primeToggleButton component still "supports" those attributes in this repo. I managed to solve my problem with a pass-through setting for the PrimeVue toggle button.
Not in the current Version:
v-model="context._value"
:input-id="context.id"
:disabled="attrs._disabled ?? false"
:readonly="attrs._readonly ?? false"
:input-style="attrs.style"
:input-class="styleClass"
:tabindex="attrs.tabindex"
:aria-label="attrs.ariaLabel"
:aria-labelledby="attrs.ariaLabelledby"
:on-label="attrs.onLabel ?? 'Yes'"
:off-label="attrs.offLabel ?? 'No'"
:on-icon="attrs.onIcon ?? 'pi pi-check'"
:off-icon="attrs.offIcon ?? 'pi pi-times'"
:icon-pos="attrs.iconPos ?? 'left'"
:pt="attrs.pt"
:pt-options="attrs.ptOptions"
:unstyled="attrs.unstyled ?? false"
@change="handleChange"
/>
Should i close ?
Greetings,
Tom
I am trying to customize the ToggleButton element. I can use the
onLabel
and theoffLabel
attributes just fine. However, theonClass
andoffClass
attributes do not work.