Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

Powerful UX, not just for desktops anymore - Co...

Lori M Olson
November 05, 2010

Powerful UX, not just for desktops anymore - Conferencia Rails

How to build your own custom UI controls, powered by jQuery, and integrate them in your Rails application.

Lori M Olson

November 05, 2010
Tweet

More Decks by Lori M Olson

Other Decks in Programming

Transcript

  1. WHY? If it’s not built in, then ... build it!

    If you don’t know how... learn how! If it’s hard... don’t start from scratch!
  2. But... What if you need to make more than one

    selection http://jqueryui.com/demos/autocomplete/ http://www.danwellman.co.uk/demos/ autocomplete.html Not completely satisfying, users get confused
  3. Breakdown Select from list Selection to results add and add

    all buttons remove and remove all buttons optionally you can allow manual sorting
  4. BUT... What if your list of choices is REALLY large?

    In my case > 100K companies Hey, wait a minute, what about that Autocomplete thing....
  5. Controller Back to the jQuery UI Autocomplete Reduce! Reuse! Recycle

    autocomplete from the rails3-jquery- autocomplete plugin is the only controller code required
  6. build it Javascript just needs to be made generic/ consistent

    Create FormTagHelpers to construct the pieces