Class: Voom::Presenters::DSL::Components::Stepper::Step::Actions
- Defined in:
- lib/voom/presenters/dsl/components/stepper.rb
Defined Under Namespace
Classes: StepperButton
Instance Attribute Summary collapse
-
#buttons ⇒ Object
Returns the value of attribute buttons.
Attributes inherited from Base
#attributes, #css_class, #draggable, #drop_zone, #id, #tag, #type
Instance Method Summary collapse
- #back(text = 'Back', **options, &block) ⇒ Object
- #cancel(text = 'Cancel', **options, &block) ⇒ Object
- #continue(text = 'Continue', **options, &block) ⇒ Object (also: #next)
-
#initialize(**attribs_, &block) ⇒ Actions
constructor
A new instance of Actions.
- #skip(text = 'Skip', **options, &block) ⇒ Object
Methods inherited from Base
Methods included from Pluggable
#include_plugins, #plugin, #plugin_module
Methods included from Mixins::YieldTo
Methods included from Serializer
Methods included from Lockable
Constructor Details
#initialize(**attribs_, &block) ⇒ Actions
Returns a new instance of Actions.
48 49 50 51 52 |
# File 'lib/voom/presenters/dsl/components/stepper.rb', line 48 def initialize(**attribs_, &block) super(type: :action, **attribs_, &block) @buttons = [] end |
Instance Attribute Details
#buttons ⇒ Object
Returns the value of attribute buttons.
46 47 48 |
# File 'lib/voom/presenters/dsl/components/stepper.rb', line 46 def @buttons end |
Instance Method Details
#back(text = 'Back', **options, &block) ⇒ Object
59 60 61 |
# File 'lib/voom/presenters/dsl/components/stepper.rb', line 59 def back(text = 'Back', **, &block) (text, :back, **, &block) end |
#cancel(text = 'Cancel', **options, &block) ⇒ Object
67 68 69 |
# File 'lib/voom/presenters/dsl/components/stepper.rb', line 67 def cancel(text = 'Cancel', **, &block) (text,:cancel, **, &block) end |
#continue(text = 'Continue', **options, &block) ⇒ Object Also known as: next
54 55 56 |
# File 'lib/voom/presenters/dsl/components/stepper.rb', line 54 def continue(text = 'Continue', **, &block) (text, :next, **, &block) end |
#skip(text = 'Skip', **options, &block) ⇒ Object
63 64 65 |
# File 'lib/voom/presenters/dsl/components/stepper.rb', line 63 def skip(text = 'Skip', **, &block) (text,:skip, **, &block) end |