form elements rewrite, part 2
This commit is contained in:
parent
fe303bf2b0
commit
074902d079
33 changed files with 163 additions and 153 deletions
|
|
@ -33,7 +33,6 @@ Ox.ObjectArrayInput = function(options, self) {
|
|||
});
|
||||
|
||||
function addInput(index, value) {
|
||||
Ox.print('addInput', index)
|
||||
self.$element.splice(index, 0, Ox.Element()
|
||||
.css({
|
||||
width: self.options.width + 'px',
|
||||
|
|
@ -53,6 +52,11 @@ Ox.ObjectArrayInput = function(options, self) {
|
|||
labelWidth: self.options.labelWidth,
|
||||
width: self.options.width
|
||||
})
|
||||
.bindEvent({
|
||||
change: function(data) {
|
||||
// ...
|
||||
}
|
||||
})
|
||||
.appendTo(self.$element[index])
|
||||
);
|
||||
self.$removeButton.splice(index, 0, Ox.Button({
|
||||
|
|
@ -115,6 +119,13 @@ Ox.ObjectArrayInput = function(options, self) {
|
|||
});
|
||||
}
|
||||
|
||||
self.setOption = function(key, value) {
|
||||
if (key == 'value') {
|
||||
// ...
|
||||
}
|
||||
};
|
||||
|
||||
// FIXME: remove
|
||||
that.value = function() {
|
||||
return self.$input.map(function($input) {
|
||||
return $input.value();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue