Skip to content

Instantly share code, notes, and snippets.

@svizzari
Created May 14, 2014 03:29
Show Gist options
  • Save svizzari/c7d5670f63507398d208 to your computer and use it in GitHub Desktop.
Save svizzari/c7d5670f63507398d208 to your computer and use it in GitHub Desktop.
Lotus Menus
<select data-zd-type="select_menu">
<option>Foo</option>
<option>Bar</option>
</select>
{{zd_menu "select" data}}
@svizzari
Copy link
Author

It is also possible to use the jQuery plugins for the menus. Jump into the console and look up $.fn.zdSelectMenu, etc. So, you can select an element in your app, a and call the plugin, i.e. $('.my-awesome-select').zdSelectMenu(); Relevant reference here: https://github.com/zendesk/ui_widgets#usage

@zz85
Copy link

zz85 commented May 14, 2014

didn't managed to compile the lib successfully during the hackathon, but thanks for the pointers!

@globsecure
Copy link

Hi,

What add options on ajax response?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment