Class: Frontyard::ApplicationTable
- Inherits:
-
ApplicationComponent
- Object
- Phlex::HTML
- ApplicationComponent
- Frontyard::ApplicationTable
- Defined in:
- app/components/frontyard/application_table.rb
Instance Method Summary collapse
Methods inherited from ApplicationComponent
#before_template, config, default_config, generate_css_class, #html_options, initialize_with, #namespace, #params, #render_model, #render_table, #view_template
Instance Method Details
#render_row(**kwargs, &block) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/components/frontyard/application_table.rb', line 3 def render_row(**kwargs, &block) if self.class.const_defined?(:Row) render self.class::Row.new(**kwargs, &block) else tr(**kwargs, &block) end end |