Sha256: de26039c0b5588dacbf8df663650cabf5f35a5080ce4a8fa115fa5d441c1f1ec

Contents?: true

Size: 456 Bytes

Versions: 29

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

module Koi
  class TableQueryComponent < Katalyst::Tables::QueryComponent
    def call
      content_tag(:"koi-toolbar") do
        render_parent
      end
    end

    private

    using Katalyst::HtmlAttributes::HasHtmlAttributes

    def default_html_attributes
      super.merge_html(data: { action: %w[
                         shortcut:search@document->tables--query#focus
                       ] })
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
katalyst-koi-4.16.0 app/components/koi/table_query_component.rb
katalyst-koi-4.15.1 app/components/koi/table_query_component.rb
katalyst-koi-4.15.0 app/components/koi/table_query_component.rb
katalyst-koi-4.14.3 app/components/koi/table_query_component.rb
katalyst-koi-4.14.2 app/components/koi/table_query_component.rb
katalyst-koi-4.14.1 app/components/koi/table_query_component.rb
katalyst-koi-4.14.0 app/components/koi/table_query_component.rb
katalyst-koi-4.13.2 app/components/koi/table_query_component.rb
katalyst-koi-4.13.0 app/components/koi/table_query_component.rb
katalyst-koi-4.12.6 app/components/koi/table_query_component.rb
katalyst-koi-4.12.5 app/components/koi/table_query_component.rb
katalyst-koi-4.12.4 app/components/koi/table_query_component.rb
katalyst-koi-4.12.3 app/components/koi/table_query_component.rb
katalyst-koi-4.12.2 app/components/koi/table_query_component.rb
katalyst-koi-4.12.1 app/components/koi/table_query_component.rb
katalyst-koi-4.12.0 app/components/koi/table_query_component.rb
katalyst-koi-4.11.2 app/components/koi/table_query_component.rb
katalyst-koi-4.11.1 app/components/koi/table_query_component.rb
katalyst-koi-4.11.0 app/components/koi/table_query_component.rb
katalyst-koi-4.10.3 app/components/koi/table_query_component.rb