Module: SplitbuttonHelper

Defined in:
app/helpers/splitbutton_helper.rb

Instance Method Summary collapse

Instance Method Details

#p_splitbutton(value, options = {}, &block) ⇒ Object



3
4
5
6
# File 'app/helpers/splitbutton_helper.rb', line 3

def p_splitbutton(value,options={},&block)    
   output = splitbutton_encode_markup(value,options)  
   output += splitbutton_encode_script(options,&block)              		                        
end

#p_splitbutton_item(value, options = {}) ⇒ Object



8
9
10
11
12
13
# File 'app/helpers/splitbutton_helper.rb', line 8

def p_splitbutton_item(value,options={})  
   options = options.stringify_keys
   output = {:text => value}           		                        
   output = output.merge(options) 
   output = output.to_json 
end