Class: Jquard::Tables::TableComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Jquard::Tables::TableComponent
- Defined in:
- app/components/jquard/tables/table_component.rb
Instance Method Summary collapse
-
#initialize(table:, resource:, result:, query_params: {}) ⇒ TableComponent
constructor
A new instance of TableComponent.
Constructor Details
#initialize(table:, resource:, result:, query_params: {}) ⇒ TableComponent
Returns a new instance of TableComponent.
4 5 6 7 8 9 |
# File 'app/components/jquard/tables/table_component.rb', line 4 def initialize(table:, resource:, result:, query_params: {}) @table = table @resource = resource @result = result @query_params = query_params.to_h.symbolize_keys end |