class Voom::Presenters::DSL::Components::Stepper::Step
Attributes
components[RW]
editable[RW]
optional[RW]
selected[RW]
Public Class Methods
new(**attribs_, &block)
click to toggle source
Calls superclass method
Voom::Presenters::DSL::Components::Content::new
# File lib/voom/presenters/dsl/components/stepper.rb, line 25 def initialize(**attribs_, &block) super(type: :step, **attribs_, &block) @editable = attribs.delete(:editable) {true} @optional = attribs.delete(:optional) {false} @selected = attribs.delete(:selected) {false} @components = [] expand! end
Public Instance Methods
actions(**attribs, &block)
click to toggle source
# File lib/voom/presenters/dsl/components/stepper.rb, line 39 def actions(**attribs, &block) return @actions if locked? @actions = Actions.new(parent: self, **attribs, &block) end
label(text = nil)
click to toggle source
# File lib/voom/presenters/dsl/components/stepper.rb, line 34 def label(text = nil) return @label if locked? @label = text end