@mention autocomplete on nested objects

229 views Asked by At

I'm looking to do some really complex autocomplete in a textarea kind of like what occurs with libraries like @mention. I'd like to have autocomplete options start after a delimiter, and then continue after periods to quickly navigate object trees. For example, typing @ would give an autocomplete menu to all the keys in an object, then after selecting that key, the next period starts an new autocomplete that is an autocomplete for all the keys specific to that previously selected object. If the top level object had 3 different layers, the below would be the end result of the final autocomplete.

@[key1.key2.key3]

'@[this.category.UnitPrice]'

'@[topKey.midKey.finalKey]'

Anyone ever run into this kind of situation?

0

There are 0 answers