class Bootstrap::ViewHelpers::Components::Button::Link
Attributes
href[R]
Public Instance Methods
to_html()
click to toggle source
# File lib/bootstrap/view_helpers/components/button/link.rb, line 6 def to_html verify_disabled_link link_to(label, href, html_options) end
Protected Instance Methods
html_options()
click to toggle source
# File lib/bootstrap/view_helpers/components/button/link.rb, line 25 def html_options options.merge({ role: :button }) end
inject_additional_attributes()
click to toggle source
Calls superclass method
Bootstrap::ViewHelpers::Components::Button#inject_additional_attributes
# File lib/bootstrap/view_helpers/components/button/link.rb, line 29 def inject_additional_attributes super @href = options.delete(:href) end
inject_class_name_to_options()
click to toggle source
Calls superclass method
Bootstrap::ViewHelpers::Components::Button#inject_class_name_to_options
# File lib/bootstrap/view_helpers/components/button/link.rb, line 20 def inject_class_name_to_options super options[:class] << ' disabled' if options[:disabled] end
verify_disabled_link()
click to toggle source
# File lib/bootstrap/view_helpers/components/button/link.rb, line 15 def verify_disabled_link return unless options[:disabled] options[:tabindex] = '-1' end