This is a migrated thread and some comments may be shown as answers.

Switch appears to still use deprecated Props

1 Answer 4 Views
This is a migrated thread and some comments may be shown as answers.
Zachary
Top achievements
Rank 1
Zachary asked on 24 Jan 2019, 05:14 PM

I'm attempting to set the label values for a kendo-switch component and the messages prop doesn't appear to function as demonstrated here: https://www.telerik.com/kendo-vue-ui/components/inputs/switch/labels/

Yet, the old on-label and off-label props appear to work (https://www.telerik.com/kendo-vue-ui/components/inputs/api/switch/Switch/). I think there is some disconnect with the version of the npm for @progress/kendo-inputs-vue-wrapper and the main @progress/kendo-ui

Currently I am including:

"@progress/kendo-inputs-vue-wrapper": "^2018.3.1025",

"@progress/kendo-ui": "^2018.3.1219",

 

The kendo-inputs-vue-wrapper doesn't appear to have a 2018.3.1219 version. Am I missing something needed to make the latest version work?

1 Answer, 1 is accepted

Sort by
0
Joana
Telerik team
answered on 25 Jan 2019, 02:46 PM
Hi Zachary,

I replied in the same support thread opened by you. To facilitate the communication, let's continue the discussion in one.

I am pasting the reply, for reference:


I have created an example with both configuration of labels either Messages, or on-label and off-label props:

https://pvrpbb.run.stackblitz.io
 
<kendo-switch name="switch" :messages="messages">
</kendo-switch>
<kendo-switch name="switch2" :on-label="'Yep'" :off-label="'Nope'">
</kendo-switch>

Tested with the below versions.

"@progress/kendo-inputs-vue-wrapper": "2019.1.124",
"@progress/kendo-ui": "2019.1.115"

Note that since 2019.1.115 version the Messages props were introduced and the Switch definition was modified. Earlier versions allow the usage of on-label and off-label props only.

From the provided error, it seems that there is a discrepancy between the versions downloaded as the ripple container is released with 2019.1.115 version. I suggest that you download the latest packages and test the behavior. If the issue persists, you could send us a runnable sample or stackblitz example where we could examine the issue.


Regards,
Joana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Zachary
Top achievements
Rank 1
Answers by
Joana
Telerik team
Share this question
or