Sha256: e053ce52753528cd26c8b8779b04e273815244da472c270c3e4a51d48fabd170

Contents?: true

Size: 835 Bytes

Versions: 12

Compression:

Stored size: 835 Bytes

Contents

module KonoUtils
  module Object
    module Cell
      module 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
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kono_utils_bootstrap_view4-0.3.2 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb
kono_utils_bootstrap_view4-0.3.1 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb
kono_utils_bootstrap_view4-0.3 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb
kono_utils_bootstrap_view4-0.2.3 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb
kono_utils_bootstrap_view4-0.2.2 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb
kono_utils_bootstrap_view4-0.2.1 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb
kono_utils_bootstrap_view4-0.2 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb
kono_utils_bootstrap_view4-0.1.2 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb
kono_utils_bootstrap_view4-0.1.1 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb
kono_utils_bootstrap_view4-0.1.0 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb
kono_utils_bootstrap_view4-0.1.0.pre.rc.7 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb
kono_utils_bootstrap_view4-0.1.0.pre.rc.4 app/concepts/kono_utils/object/cell/buttons/collapse_search.rb