Sha256: b26db14cc5ece22bb3e1cf8833473d6f5339fd89c0ea1b24d8e238ce60690653
Contents?: true
Size: 720 Bytes
Versions: 102
Compression:
Stored size: 720 Bytes
Contents
module RubyApp module Elements module Mobile module Inputs require 'ruby_app/elements/mobile/input' class ToggleInput < RubyApp::Elements::Mobile::Input class ChangedEvent < RubyApp::Elements::Mobile::Input::ChangedEvent def initialize(data) super(data) @value = @value.to_b end end template_path(:all, File.dirname(__FILE__)) exclude_parent_template(:all) def initialize super self.attributes.delete(:type) self.attributes.merge!('data-role' => 'slider') @value = false end end end end end end
Version data entries
102 entries across 102 versions & 1 rubygems