Class: Voom::Presenters::DSL::Components::Stepper::Step
Defined Under Namespace
Classes: Actions
Instance Attribute Summary collapse
-
#components ⇒ Object
Returns the value of attribute components.
-
#editable ⇒ Object
Returns the value of attribute editable.
-
#optional ⇒ Object
Returns the value of attribute optional.
-
#selected ⇒ Object
Returns the value of attribute selected.
Attributes inherited from Content
#background_color, #float, #height, #hidden, #inline, #padding, #position, #shows_errors, #text_align, #width
Attributes inherited from EventBase
Attributes included from Mixins::Event
Attributes inherited from Base
#attributes, #css_class, #draggable, #drop_zone, #id, #tag, #type
Instance Method Summary collapse
- #actions(**attribs, &block) ⇒ Object
-
#initialize(**attribs_, &block) ⇒ Step
constructor
A new instance of Step.
- #label(text = nil) ⇒ Object
Methods included from Mixins::Padding
#coerce_padding, #validate_padding
Methods included from Mixins::Progress
Methods included from Mixins::Avatar
Methods included from Mixins::FileInputs
Methods included from Mixins::Dialogs
Methods included from Mixins::Icons
Methods included from Mixins::Chipset
Methods included from Mixins::Append
Methods included from Mixins::Sliders
Methods included from Mixins::Steppers
Methods included from Mixins::Snackbars
Methods included from Mixins::Selects
Methods included from Mixins::DateTimeFields
#date_field, #datetime_field, #time_field
Methods included from Mixins::TextFields
#hidden_field, #number_field, #rich_text_area, #text_area, #text_field
Methods included from Mixins::Attaches
Methods included from Namespace
Methods included from Mixins::Common
#avatar, #badge, #card, #form, #list, #table, #unordered_list
Methods included from Mixins::Tables
Methods included from Mixins::ImageLists
Methods included from Mixins::Images
Methods included from Mixins::TabBars
Methods included from Mixins::Menus
Methods included from Mixins::Content
Methods included from Mixins::ExpansionPanels
Methods included from Mixins::Buttons
Methods included from Mixins::Grids
Methods included from Mixins::Typography
#blank, #body, #body2, #caption, #headline, #headline1, #headline2, #headline3, #headline4, #headline5, #headline6, #link, #overline, #page_title, #separator, #subtitle, #subtitle2, #text, #title
Methods included from Mixins::Toggles
#checkbox, #icon_toggle, #radio_button, #switch
Methods included from Mixins::Event
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) ⇒ Step
Returns a new instance of Step.
25 26 27 28 29 30 31 32 |
# 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 = [] end |
Instance Attribute Details
#components ⇒ Object
Returns the value of attribute components.
23 24 25 |
# File 'lib/voom/presenters/dsl/components/stepper.rb', line 23 def components @components end |
#editable ⇒ Object
Returns the value of attribute editable.
23 24 25 |
# File 'lib/voom/presenters/dsl/components/stepper.rb', line 23 def editable @editable end |
#optional ⇒ Object
Returns the value of attribute optional.
23 24 25 |
# File 'lib/voom/presenters/dsl/components/stepper.rb', line 23 def optional @optional end |
#selected ⇒ Object
Returns the value of attribute selected.
23 24 25 |
# File 'lib/voom/presenters/dsl/components/stepper.rb', line 23 def selected @selected end |
Instance Method Details
#actions(**attribs, &block) ⇒ Object
39 40 41 42 43 |
# 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) ⇒ Object
34 35 36 37 |
# File 'lib/voom/presenters/dsl/components/stepper.rb', line 34 def label(text = nil) return @label if locked? @label = text end |