class Voom::Presenters::DSL::Components::Table::Row

Attributes

checkbox[RW]
color[RW]
columns[RW]

Public Class Methods

new(type:, **attribs_, &block) click to toggle source
# File lib/voom/presenters/dsl/components/table.rb, line 45
def initialize(type:, **attribs_, &block)
  super(type: type, **attribs_, &block)
  @columns = []
  @color = attribs.delete(:color)
  self.checkbox(attribs.slice(:name, :value, :checked)) if @parent.selectable
  expand!
end

Public Instance Methods

column(value=nil, **attribs, &block) click to toggle source
# File lib/voom/presenters/dsl/components/table.rb, line 53
def column(value=nil, **attribs, &block)
  @columns << Column.new(parent: self, value: value,
                         **attribs, &block)
end