make Clay work with phone apps

This commit is contained in:
Keegan
2016-02-09 17:21:16 -08:00
parent d6caa1527b
commit 41334698bd
38 changed files with 655 additions and 61 deletions
+22
View File
@@ -0,0 +1,22 @@
'use strict';
module.exports = {
name: 'select',
template: require('../../templates/components/select.tpl'),
style: require('../../styles/clay/components/select.scss'),
manipulator: 'val',
defaults: {
label: '',
options: []
},
initialize: function() {
var self = this;
var $value = self.$element.select('.value');
self.on('change', function(ev) {
var value = self.$manipulatorTarget.select('option:checked').get('innerHTML');
$value.set('innerHTML', value);
});
}
};