Check out this example https://www.telerik.com/kendo-vue-ui/components/grid/ showcasing a computed method
gridSearchMessage() {
return provideLocalizationService(this).toLanguageString(
"gridSearch",
"Search in all columns..."
);
}
This piece of code uses OptionsAPI. I am interested in converting it to CompositionAPI like so:
const gridSearchMessage : ComputedRef<string> = computed<string>(() => {
return provideLocalizationService(this).toLanguageString(
"gridSearch",
"Search in all columns..."
)
})
However, when I make this change, I encounter an error. Can anyone explain why this is happening? Interestingly, by simply adjusting the method to:
const gridSearchMessage : ComputedRef<string> = computed<string>(() => {
return "Search in all columns..."
})
everything functions as expected.