Sha256: 560cc251b09bd9302ceb032769ef9767712db3a6cbcd5cb24d71b9c61336059b

Contents?: true

Size: 653 Bytes

Versions: 4

Compression:

Stored size: 653 Bytes

Contents

/*
---
 
script: Checkbox.js
 
description: On/Off widget
 
license: Public domain (http://unlicense.org).

authors: Yaroslaff Fedin
 
requires:
  - LSD.Native.Input

provides: 
  - LSD.Native.Input.Checkbox
 
...
*/

LSD.Native.Input.Checkbox = new Class({
  Extends: LSD.Native.Input,
  
  options: {
    pseudos: Array.object('checkbox', 'clickable'),
    attributes: {
      type: 'checkbox'
    },
    events: {
      _checkbox: {
        self: {
          check: function() {
            this.element.checked = true;
          },
          uncheck: function() {
            this.element.checked = false;
          }
        }
      }
    }
  }
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lsd_rails-0.1.6 Packages/lsd-native/Source/Input/Checkbox.js
lsd_rails-0.1.5 Packages/lsd-native/Source/Input/Checkbox.js
lsd_rails-0.1.4 Packages/lsd-native/Source/Input/Checkbox.js
lsd_rails-0.1.3 Packages/lsd-native/Source/Input/Checkbox.js