Sha256: 79518e420c6cabe59da3950d5f4589bf078d4f40e879a7273a29d1705a2ed0ce

Contents?: true

Size: 980 Bytes

Versions: 4

Compression:

Stored size: 980 Bytes

Contents

module Twitter::Bootstrap::Markup::Rails::Helpers
  module ProgressBarHelpers
    # Render a bootstrap progress bar
    #
    # @param [Integer] width percent out of 100 progress on bar
    # @param [Hash] options hash containing options (default: {}):
    #           :type         - Additional progress type(s). For one, just specify a string, but
    #                           you can also pass an array (of sym or str) for multiple classes
    #           :html_options - Any additional options you'd like to pass to the content_tag that will be created
    #                           for this button's a tag (for instance :target can be specified in :html_options).
    #
    # Examples
    #
    #   bootstrap_progress_bar_tag 40, :type => ['info', 'striped'], :active => true
    #
    def bootstrap_progress_bar_tag(width, options = {})
      Twitter::Bootstrap::Markup::Rails::Components::ProgressBar.new(
        width,
        options
      ).to_s
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twitter-bootstrap-markup-rails-0.3.2.2 lib/twitter-bootstrap-markup-rails/helpers/progress_bar_helpers.rb
twitter-bootstrap-markup-rails-0.3.2.1 lib/twitter-bootstrap-markup-rails/helpers/progress_bar_helpers.rb
twitter-bootstrap-markup-rails-0.3.2 lib/twitter-bootstrap-markup-rails/helpers/progress_bar_helpers.rb
twitter-bootstrap-markup-rails-0.3.1 lib/twitter-bootstrap-markup-rails/helpers/progress_bar_helpers.rb