Native Editor - Trying to Customize Built-In Tool

1 Answer 89 Views
Editor
ANTONIO
Top achievements
Rank 1
Iron
Iron
ANTONIO asked on 29 Jan 2022, 03:32 PM

I'm trying to customize the ForeColor tool (replacing existing colors to custom ones). Based on the documention, I've began with this code:

Kcyx96 (forked) - StackBlitz

However, it's not working. I get this error: "Cannot read properties of undefined (reading 'title').

1 Answer, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 01 Feb 2022, 10:15 AM

Hi ANTONIO,

Here is an example of how you can achieve the targeted functionality. 

The important thing in the shared example is the below definition:

<template #CustomForeColor="{ props }">
    <ApplyColor v-bind=" {...props,...props.settings}" />
</template>

Check the linked project and let me know if you have additional questions related to the current discussion. 

Regards,
Petar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ANTONIO
Top achievements
Rank 1
Iron
Iron
commented on 10 Feb 2022, 08:01 PM

Hi Petar. Thank you for your response. May I ask you where can I find any documentation on this? I see, in your example, that you've added the ...props.settings binding on the ApplyColor component, and also added a "title" property inside the foreColorSetttings object. As far as my research goes, these procedures/properties aren't documented anywhere.

I'm asking this specially because I wanted to customize many of the editor tools, and the provided documentation (https://www.telerik.com/kendo-vue-ui/components/editor/tools/#toc-customizing-built-in-tools) is very short in examples, and also does not indicate all the properties I could add/change regarding the built-in tools.

Petar
Telerik team
commented on 11 Feb 2022, 03:51 PM

Hi, ANTONIO.

Unfortunately, the documentation you are asking for doesn't exist. We are aware that there are missing in the Editor's documentation and we have an internal task about improving it with more examples and API descriptions.

I cannot say exactly when the updated docs will be available, but we will do our best to be in a short period. Meanwhile, if you have additional questions related to the Editor's functionality, we will be happy to assist you.

Tags
Editor
Asked by
ANTONIO
Top achievements
Rank 1
Iron
Iron
Answers by
Petar
Telerik team
Share this question
or