The function addToSpellChecker(Component,Boolean,Boolean) is not applicable for the arguments
(RuntimeTextArea,Boolean,Boolean)
well I am using Servoy 6.0 the above piece of code was working fine in servoy 5x and later…(hope so… )
So any help in getting rid of that warning would be cool!!!
you might need to place type statement prior to the usage similar to:
/** @type {RuntimeTextArea,Boolean,Boolean} */
Research on the wiki for Servoy 6 for type…
The method addToSpellChecker in servoyguy_spellcheck_pro plugin take in three argument whose type are Component and two Boolean. While in the Code part of my last post above, I want to send a Component type but ‘element.description’ actually is a RuntimeTextArea.
So is there any way to convert a RuntimeTextArea to Component so that the warning is gone…
I tryed to type cast by
/**@type {Component}*/
var cmp = elements.description;
and used the cmp varible to pass Component type in the Function addToSpellChecker
/**@type {Component}*/
var cmp = elements.description;
plugins.servoyguy_spellcheck_pro.addToSpellChecker(cmp, true, true);
that plugin must update its code,
The parameter type should be IComponent not Component (as in real the swing or wicket ui component), so it should use the abstraction.
The servoyguy_spellcheck_pro plugin is showing no more warnings. I found the improvised plugin from Files - Spell Check Pro Plugin - ServoyForge
And many many thanks to all those who have contributed in solving this problem of mine.