forked from 0x2620/oxjs
form elements rewrite, part 2
This commit is contained in:
parent
fe303bf2b0
commit
074902d079
33 changed files with 163 additions and 153 deletions
|
|
@ -156,6 +156,11 @@ Ox.Select = function(options, self) {
|
|||
self.options.title ? self.options.title : getItem(self.options.value).title
|
||||
);
|
||||
that.triggerEvent('change', {
|
||||
title: Ox.isString(self.options.value)
|
||||
? getItem(self.options.value).title
|
||||
: self.options.value.map(function(value) {
|
||||
return getItem(value).title;
|
||||
}),
|
||||
value: self.options.value
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue