Sha256: 10f099c120512bbdb5b8782600b004d6b403fc17a1c1553b72c19a0a6b9847c7
Contents?: true
Size: 628 Bytes
Versions: 1
Compression:
Stored size: 628 Bytes
Contents
module MotionPrime class ButtonElement < BaseElement include MotionPrime::ElementContentPaddingMixin include MotionPrime::ElementFieldDimensionsMixin after_render :size_to_fit def size_to_fit if computed_options[:size_to_fit] || style_options[:size_to_fit] if computed_options[:width] view.setHeight content_outer_height end end end def view_class "DMButton" end def text_value view.try(:currentTitle) || computed_options[:title] end def font computed_options[:title_label].try(:[], :font) || :system.uifont end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-prime-0.3.2 | motion-prime/elements/button.rb |