class Voom::Presenters::DSL::Components::Stepper::Step::Actions
Attributes
Public Class Methods
new(**attribs_, &block)
click to toggle source
Calls superclass method
Voom::Presenters::DSL::Components::Base::new
# 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
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