Provides a set of methods for making toolbars views for jquery-mobile markup
Header Bar Link
—Options —
=> '- data-direction = "reverse" ## reverse transition without actually going back in history => - data-icon [delete,check,home,gear] => - data-iconpos [text,notext] ## if use notext, link only show icon => - class => - data-theme ## default 'a'
=> <a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home"> Home</a>
# File lib/jqmobile_helpers/toolbars_helper.rb, line 34 34: def header_toolbar_link(link_name,path,options = {}) 35: html_options = options.stringify_keys! 36: default_options = {'href' => "#{path}", 'data-direction' => "reverse"} 37: 38: if html_options.has_key?('data-iconpos') 39: default_options = default_options.merge({'data-iconpos' => html_options['data-iconpos']}) 40: end 41: 42: if html_options.has_key?('data-icon') 43: default_options = default_options.merge({'data-icon' => html_options['data-icon']}) 44: end 45: 46: if html_options.has_key?('data-theme') 47: default_options = default_options.merge({'data-theme' => html_options['data-theme']}) 48: end 49: 50: content_tag(:a, "#{link_name}",default_options) 51: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.