Sha256: 8cb02ef64dd7840d1073b5bf006765ea045206a09521a0e1734f270fdc0ec849
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
# frozen_string_literal: true module Plutonium module UI module Table module Components class SearchBar < Plutonium::UI::Component::Base def view_template render current_definition.query_form.new( raw_resource_query_params, query_object: current_query_object, page_size: request.parameters[:limit] ) end private def render? current_query_object.filter_definitions.present? && current_policy.allowed_to?(:search?) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plutonium-0.15.5 | lib/plutonium/ui/table/components/search_bar.rb |