Module: FlexiAdmin::Components::Helpers::ActionHelper
- Defined in:
- lib/flexi_admin/components/helpers/action_helper.rb
Instance Method Summary collapse
-
#action(action_component, disabled: true, selection_dependent: true, context: nil) ⇒ Object
Context overrides the context normally given by the class including this module Example - adding action button to a custom view form.
Instance Method Details
#action(action_component, disabled: true, selection_dependent: true, context: nil) ⇒ Object
Context overrides the context normally given by the class including this module Example - adding action button to a custom view form
6 7 8 9 10 11 |
# File 'lib/flexi_admin/components/helpers/action_helper.rb', line 6 def action(action_component, disabled: true, selection_dependent: true, context: nil) render FlexiAdmin::Components::Resources::BulkAction::ButtonComponent.new(context || self.context, action_component, disabled:, selection_dependent:) end |