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
# 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
# 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