forked from 0x2620/oxjs
adding OxLabel
This commit is contained in:
parent
dc84b4ccf9
commit
563d5bdb9f
4 changed files with 70 additions and 6 deletions
|
|
@ -1761,7 +1761,7 @@ requires
|
|||
|
||||
if (self.options.label) {
|
||||
that.$label = new Ox.Element()
|
||||
.addClass("OxLabel")
|
||||
.addClass("OxInputLabel")
|
||||
.width(self.options.labelWidth)
|
||||
.html(self.options.label[0])
|
||||
.appendTo(that);
|
||||
|
|
@ -1822,7 +1822,7 @@ requires
|
|||
.appendTo(that);
|
||||
}
|
||||
|
||||
if (options.autocomplete) {
|
||||
if (self.options.autocomplete) {
|
||||
that.$input.attr({
|
||||
autocomplete: "off"
|
||||
});
|
||||
|
|
@ -2030,6 +2030,25 @@ requires
|
|||
|
||||
};
|
||||
|
||||
/*
|
||||
----------------------------------------------------------------------------
|
||||
Ox.Label
|
||||
----------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
Ox.Label = function(options, self) {
|
||||
var self = self || {},
|
||||
that = new Ox.Element({}, self)
|
||||
.defaults({
|
||||
id: "",
|
||||
title: ""
|
||||
})
|
||||
.options(options)
|
||||
.addClass("OxLabel");
|
||||
that.html(self.options.title);
|
||||
return that;
|
||||
};
|
||||
|
||||
/*
|
||||
----------------------------------------------------------------------------
|
||||
Ox.Range
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue