class Voom::Presenters::DSL::Components::Stepper::Step::Actions

Attributes

buttons[RW]

Public Class Methods

new(**attribs_, &block) click to toggle source
# File lib/voom/presenters/dsl/components/stepper.rb, line 48
def initialize(**attribs_, &block)
  super(type: :action, **attribs_, &block)
  @buttons = []
  expand!
end

Public Instance Methods

back(text = 'Back', **options, &block) click to toggle source
# File lib/voom/presenters/dsl/components/stepper.rb, line 59
def back(text = 'Back', **options, &block)
  button(text, :back, **options, &block)
end
cancel(text = 'Cancel', **options, &block) click to toggle source
# File lib/voom/presenters/dsl/components/stepper.rb, line 67
def cancel(text = 'Cancel', **options, &block)
  button(text,:cancel, **options, &block)
end
continue(text = 'Continue', **options, &block) click to toggle source
# File lib/voom/presenters/dsl/components/stepper.rb, line 54
def continue(text = 'Continue', **options, &block)
  button(text, :next, **options, &block)
end
Also aliased as: next
next(text = 'Continue', **options, &block)
Alias for: continue
skip(text = 'Skip', **options, &block) click to toggle source
# File lib/voom/presenters/dsl/components/stepper.rb, line 63
def skip(text = 'Skip', **options, &block)
  button(text,:skip, **options, &block)
end

Private Instance Methods

button(text = nil, stepper_type, **options, &block) click to toggle source
# File lib/voom/presenters/dsl/components/stepper.rb, line 73
def button(text = nil, stepper_type, **options, &block)
  btn = StepperButton.new(stepper_type, parent: self, text: text,
                                     **options, &block)
  @buttons << btn
end