class BBS::Windows::Form::InputField
A single-line BBS::Widgets::TextInput with its label on the left.
Public Instance Methods
Source
# File lib/bbs/windows/form/fields.rb, line 51 def labelled? = !@descriptor[:label].nil?
Whether the descriptor has a label.
# File lib/bbs/windows/form/fields.rb, line 54 def place(x, width, y, _rows, label_width) if @label @label.layout(x, y, label_width, 1) @widget.layout(x + label_width + 2, y, width - label_width - 2, 1) else super end @widget.send(:adjust_scroll) end
Lays the label and the input out on row y.
Calls superclass method
BBS::Windows::Form::Field#place
Source
# File lib/bbs/windows/form/fields.rb, line 48 def widgets = [@label, @widget].compact
The label widget and the input, in order.