Class: UnderOs::UI::Label
Constant Summary
Constants included from Wrap
Wrap::INSTANCES_CACHE, Wrap::RAW_WRAPS_MAP, Wrap::WRAPS_TAGS_MAP
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Label
constructor
A new instance of Label.
- #text ⇒ Object
- #text=(text) ⇒ Object
Methods inherited from View
Methods included from Manipulation
#append, #clear, #insert, #insertTo, #prepend, #remove
Methods included from Traversing
#children, #empty?, #find, #first, #matches, #parent, #siblings
Methods included from Dimensions
#position, #position=, #size, #size=
Methods included from Animation
#animate, #fade_in, #fade_out, #highlight
Methods included from Commons
#data, #data=, #hidden, #hide, #id, #id=, #page, #show, #tagName, #toggle, #visible
Methods included from Styles
#addClass, #className, #className=, #classNames, #classNames=, #hasClass, #radioClass, #removeClass, #repaint, #style, #style=, #toggleClass
Methods included from Events
Methods included from Wrap
Constructor Details
#initialize(options = {}) ⇒ Label
Returns a new instance of Label.
4 5 6 7 8 9 10 11 12 |
# File 'lib/under_os/ui/label.rb', line 4 def initialize(={}) super self.text = .delete(:text) || '' @_.sizeToFit @_.numberOfLines = 1; @_.adjustsFontSizeToFitWidth = true; end |