I want so set "offLabel" and "onLabel" for InputSwitch but there are two errors:
i) Warning: Unknown event handler property `onLabel`. It will be ignored.
ii) Warning: React does not recognize the `offLabel` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `offlabel` instead.
I'm using PrimeReact 4.1.0 with Serenity Template.
Does sombody know how to fix that? The labels are not shown.
InputSwitch offLabel/onLabel
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
onLabel and offLabel are not supported properties;
https://www.primefaces.org/primereact/s ... nputswitch
https://www.primefaces.org/primereact/s ... nputswitch
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests