Module: Sinatra::Xeditable_Checkbox
- Defined in:
- lib/sinatra/xeditable_checkbox.rb
Overview
Provide Javascript and html for a X-Editable checkbox list
Example
xselect=get_xeditable_checkbox({a:'a',b:'b', c:'c', d:'d'}, "/path/to/action/", '.my_custom_checkbox')
On javascript section, you include
xselect.javascript
On html side, you include
xselect.html(resource_id, [:a, :b])
Defined Under Namespace
Modules: Helpers Classes: Checkbox
Class Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
60 61 62 |
# File 'lib/sinatra/xeditable_checkbox.rb', line 60 def self.registered(app) app.helpers Xeditable_Checkbox::Helpers end |