Sha256: 702e1988827659f1ab91192391639f4ce5755341b1b3b0a8d70aa2544b09c7ec

Contents?: true

Size: 641 Bytes

Versions: 3

Compression:

Stored size: 641 Bytes

Contents

module KonoUtils::Object::Cell::Buttons # namespace
  ##
  # Bottone per la struttura del collapse search
  # *Options*
  #   - collapsed_target -> identificativo del contenitore che devo espandere
  class CollapseSearch < Base

    def url_to
      options.fetch(:collapsed_target, '#')
    end

    def specific_button_class
      'btn-light'
    end

    def btn_opts(opts = {})
      {
        data: {toggle: "collapse"}
      }.merge(super)
    end

    def button_title
      I18n.t('kono_utils.bootstrap4.buttons.collapse_search.alt')
    end

    def button_content
      options.fetch(:content, fa_icon("search"))
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kono_utils_bootstrap_view4-0.1.0.pre.rc.3 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb
kono_utils_bootstrap_view4-0.1.0.pre.rc.2 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb
kono_utils_bootstrap_view4-0.1.0.pre.rc.1 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb