Methods

age - age(dateStr)
Returns age in human readable format.
base64decode - base64decode(str)
Decodes string using base64 method.
base64encode - base64encode(str)
Encodes string using base64 method.
checkName - checkName(params, component)
Verifies if specified name was already used in w2ui object.
checkUniqueId - checkUniqueId(id, items, itemsDecription, objName)
Verifies if specified id is unique within the set.
date - date(dateStr)
Returns date in human readable format.
encodeTags - encodeTags(str)
Encodes HTML tags.
escapeId - escapeId(id)
Escapes id for the use in jQuery.
formatDate - formatDate(dateStr, format)
Returns date in requested format.
formatDateTime - formatDateTime(dateStr, format)
Returns date and time in requested format.
formatNumber - formatNumber(val, [groupSymbol])
Formats a number adding commas.
formatTime - formatTime(dateStr, format)
Returns time in requested format.
getSize - getSize(el, type)
Returns the size or absolute position of the element in px including padding, margin and border.
isAlphaNumeric - isAlphaNumeric(str)
Returns true if str is alpha-numeric.
isDate - isDate(str, [format])
Returns true if str is a date.
isEmail - isEmail(str)
Returns true if str is a valid email address.
isFloat - isFloat(str)
Returns true if str is a float number.
isHex - isHex(str)
Returns true if str is a hex number.
isInt - isInt(str)
Returns true if str is a integer number.
isMoney - isMoney(str)
Returns true if str is in money format.
isTime - isTime(str)
Returns true if str is a valid time.
lang - lang(phrase);
Returns translation for the phrase.
locale - locale(locale);
Loads new locale
lock - lock(box, message, showSpinner)
Locks HTML element.
parseRoute - parseRoute(route)
Returns time in requested format.
scrollBarSize - scrollBarSize()
Returns width of a scrollbar
size - size(int)
Returns human readable file size.
stripTags - stripTags(str)
Removes all HTML tags.
transition - transition(div_old, div_new, type, [callBack])
Transitions two absolute divs.
unlock - unlock(box)
Unlocks HTML element.