Find valid elements at caret position
Posted: Fri Sep 02, 2022 2:02 pm
Hi Team,
I would like to know how to get what and all elements can be renamed with the old element.
Example.
Say my cursor is at venue.name element and i want the list of elements which can be replaced with the venue.name element.
I have tried using authorSchemaManager.whatElementsCanGoHere(context); method to get the valid elements.
But i am getting same elements every time irrespective of cursor position.
Above image is the requirement which i need to implement veneue.name is the current element and below are the list of elements which i can replace with.
Here the list will change according to element but in my case the list is same for all the elements.
I would like to know how to get what and all elements can be renamed with the old element.
Example.
Say my cursor is at venue.name element and i want the list of elements which can be replaced with the venue.name element.
I have tried using authorSchemaManager.whatElementsCanGoHere(context); method to get the valid elements.
But i am getting same elements every time irrespective of cursor position.
Above image is the requirement which i need to implement veneue.name is the current element and below are the list of elements which i can replace with.
Here the list will change according to element but in my case the list is same for all the elements.