You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing autocomplete for codeMirror and i have options such as API, API.data, API.isLoading, API.data.list so rather than just providing API and then getting next values i show both ways. But when i write API.data, i want API.data and in suggestion API.data.list (ie just text match). I am not sure if this is possible today coz i wasn't able to find it anywhere. Can someone please guide me with this?
@othree sure! sorry for being so clear about problem.
below is before behaviour for autocomplete using tern
before.mov
below is after i made modification for the options being provided for autocomplete
after.mov
So now when i search with 'API.data', autocomplete should show up everything which has 'API.data' as string because 'API.data' might have more properties eg API.data.list. API.data.isLoading etc. Is this possible today? I went through the docs but couldn't find it.
Activity
othree commentedon May 13, 2021
Sorry, I don't understand what you are talking about. Can you provide a demo or describe more details.
ApekshaBhosale commentedon May 14, 2021
@othree sure! sorry for being so clear about problem.
below is before behaviour for autocomplete using tern
before.mov
below is after i made modification for the options being provided for autocomplete
after.mov
So now when i search with 'API.data', autocomplete should show up everything which has 'API.data' as string because 'API.data' might have more properties eg API.data.list. API.data.isLoading etc. Is this possible today? I went through the docs but couldn't find it.
[-]Simple rext search for tern [/-][+]Simple text search for tern [/+]othree commentedon May 17, 2021
Yes, AFAIK the child properties of an object still possible to provide such information.
ApekshaBhosale commentedon May 17, 2021
@othree can you please elaborate on that? or can tell me how do this?