Module: NattyUI::Attributes::Width

Included in:
Table::Cell::Attributes, Table::Column
Defined in:
lib/natty-ui/attributes.rb

Instance Attribute Summary collapse

Instance Attribute Details

#max_widthInteger?

Maximum element width.



166
# File 'lib/natty-ui/attributes.rb', line 166

def max_width = width.is_a?(Range) ? @width.end : @width

#min_widthInteger?

Minimum element width.



155
# File 'lib/natty-ui/attributes.rb', line 155

def min_width = width.is_a?(Range) ? @width.begin : @width

#widthInteger, ...

Element width.



144
145
146
# File 'lib/natty-ui/attributes.rb', line 144

def width
  @width
end