At.js icon indicating copy to clipboard operation
At.js copied to clipboard

Get selected value

Open yasir-rafiq opened this issue 6 years ago • 1 comments

How I can style different on different values like @tag, #tag, and others. I've also data as object like [{name: "xyz", content: "abc"}], how I can get whole selected object.

yasir-rafiq avatar Nov 23 '17 07:11 yasir-rafiq

Might be a bit later for you, but if others are wondering you can capture the selected item within the "inserted.atwho" event.

The event is passed the event & selected item in the dropdown (LI in my case). On the selected item is a data object called itemData that contains the object you are passing within the data collection.

StevenHensgen avatar Apr 18 '18 05:04 StevenHensgen