Sha256: 2a0660fe71535ae64b2f29207a8f92d6cb7df4367474330b32b6385ed2cfa770
Contents?: true
Size: 748 Bytes
Versions: 10
Compression:
Stored size: 748 Bytes
Contents
module RubyApp module Elements module Mobile module Lists require 'ruby_app/elements/mobile/list' class Select < RubyApp::Elements::Mobile::List template_path(:all, File.dirname(__FILE__)) exclude_parent_template(:html) attr_accessor :selected_item def initialize super self.attributes.merge!('data-selected-theme' => 'a') end def selected_item=(item) @selected_item = item end protected def on_clicked(event) @selected_item = event.item event.update_element(self) super(event) end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems