1
0
Fork 0
forked from 0x2620/oxjs

adding OxLabel

This commit is contained in:
Rolux 2010-02-27 09:46:49 +01:00
commit 563d5bdb9f
4 changed files with 70 additions and 6 deletions

View file

@ -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