jQuery UI Widgets › Forums › Editors › Editor › getting "event" information in the createCommand jqxDropDownList
This topic contains 5 replies, has 2 voices, and was last updated by edwardsmarkf 3 years, 8 months ago.
-
Author
-
hello –
the createCommand documentation demonstrates an excellent example of using a dropDown in the editor.
is there any way to get the same information from an .
on("select"
callback similar what we see here?http://jsfiddle.net/jqwidgets/3UJBg/
i am trying to obtain the information contained in
event.args
and theevent.currentTarget
within the editor.in other words, i am trying to get similar functionality of the jqxDropDownList while using it as a custom createCommand in the editor.
thank you.
- This topic was modified 3 years, 8 months ago by edwardsmarkf.
- This topic was modified 3 years, 8 months ago by edwardsmarkf.
adding this seems to work fine:
$('.jqx-listbox-container').select( (event) => { console.log(event.args.originalEvent.pageX); console.log(event.currentTarget.offsetWidth); })
- This reply was modified 3 years, 8 months ago by edwardsmarkf.
this has been a bit difficult, so i wanted to share my results, and hopefully get some further input.
my goal has been to have some way to select phonetic symbols, but not have the dropDown go too far down on the page. so instead of ONE phonetic symbol per line, i wanted to have multiple phonetic symbols on each line:
http://jsfiddle.net/edwardsmarkf/oj2uqx7m/148/
are there any other suggestions?
- This reply was modified 3 years, 8 months ago by edwardsmarkf.
Hello edwardsmarkf,
As far as I can see the last version that you have sent is working. Do you need any further assistance?
Best Regards,
TodorjQWidgets Team
https://www.jqwidgets.coma few improvements:
http://jsfiddle.net/edwardsmarkf/oj2uqx7m/251/
again, any input or suggestions would be appreciated.
-
AuthorPosts
You must be logged in to reply to this topic.