Sha256: 5dfc65cada1042d6145a8fa1f06f7160fb6b3d4f469d3f037bf835cd57a1a1d7
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
class MyCustomIndexItemView < UIView include Teacup::Layout attr_reader :label, :underline def init super self.stylesheet = :index_item layout(self, :index_item) do @label = subview(UILabel, :label) @underline = subview(UIView, :underline) end self end def select @underline.hidden = false @label.textColor = :white.uicolor end def unselect @underline.hidden = true @label.textColor = :light_gray.uicolor end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-wizard-0.1 | samples/wizard-2/app/views/my_custom_index_item_view.rb |