Class: IRuby::Input::Label

Inherits:
Widget
  • Object
show all
Defined in:
lib/iruby/input/label.rb

Direct Known Subclasses

Button, Checkbox, Field, File, Radio, Select

Instance Method Summary collapse

Methods inherited from Widget

builder, #content, #widget_css, #widget_display, #widget_html, #widget_join, #widget_js

Instance Method Details

#widget_labelObject



6
7
8
9
10
11
12
# File 'lib/iruby/input/label.rb', line 6

def widget_label
  label = @label || to_label(@key)
  div class: 'iruby-label input-group' do
    span label, class: 'input-group-addon'
    yield
  end
end