Adds backslash ‘\’ to end of a string (if not already present).
function ng_AddBackslash( v )
Adds given prefix to a string (if not already present).
function ng_AddPrefix( v, pref, caseinsensitive )
Adds slash ‘/’ to end of a string (if not already present).
function ng_AddSlash( v )
Adds given suffix to a string (if not already present).
function ng_AddSuffix( v, suff, caseinsensitive )
Adds new parameter(s) to URL.
function ng_AddURLParam( url, param )
Appends text to element’s innerHTML.
function ng_AppendInnerHTML( o, t )
Prepares element for dimension measurement.
function ng_BeginMeasureElement( o )
Creates computed viewmodel property which translates boolean to other viewmodel property value (or values).
ko.ng_bool2val = function ( viewModel, propName, trueValue, falseValue )
Creates computed viewmodel property which detects value changes of enumerated properties.
ko.ng_changed = function ()
Removes all undefined properties in object.
function ng_CleanUndefined( d )
Gets element client height.
function ng_ClientHeight( o )
Gets element client width.
function ng_ClientWidth( o )
Compares two decoded units.
function ng_CompareSIUnits( u1, u2 )
Creates true copy of variable.
function ng_CopyVar( o )
Creates computed viewmodel property, similar to ko.ng_changed, which detects value changes of enumerated properties and increases it’s value every time the change occurs.
ko.ng_dataversion = function ()
Determines number of days in month.
function ng_DaysInMonth( m, y )
Decodes given units to units with exponent (square, quadratic).
function ng_decodeSIUnits( units )
Gets default date format according to selected language.
function ng_DefaultDateFormat( parse, shortfmt )
Gets default date and time format according to selected language.
function ng_DefaultDateTimeFormat( parse, shortfmt )
Gets default time format according to selected language.
function ng_DefaultTimeFormat( parse, shortfmt )
Creates computed viewmodel property which value is gathered from another model.
ko.ng_delegate = function ( viewModel, propName, readonly )
Removes document selection.
function ng_DocumentDeselect()
Gets actual document horizontal scroll offset.
function ng_DocumentScrollX()
Gets actual document vertical scroll offset.
function ng_DocumentScrollY()
Detects if variable is empty (not set).
function ng_EmptyVar( o )
Finishes element dimension measurement.
function ng_EndMeasureElement( o )
Extracts date part from datetime variable.
function ng_ExtractDate( dt )
Encapsulates ngFieldDef into viewmodel.
ko.ng_fielddef = function( vm, fd, value )
Determines horizontal element offset to absolute mouse position.
function ng_findMousePosX( obj )
Determines vertical element offset to absolute mouse position.
function ng_findMousePosY( obj )
Determines horizontal offset of the element relative to its super parent.
function ng_findPosX( obj )
Determines vertical offset of the element relative to its super parent.
function ng_findPosY( obj )
Adds thousands separator to string.
function ng_Format3Num( v, sep, rsep )
Converts given variable to area with units.
function ng_formatArea( v, def, precision, formatfnc, userdata )
Converts given variable to distance with units.
function ng_formatBytes( v, def, precision, formatfnc, userdata )
Formats date to string.
function ng_FormatDate( date, format, def )
Converts given variable to date string in ISO 8601 format.
function ng_formatDateISO8601( d, def )
Formats date and time to string.
function ng_FormatDateTime( date, format, def )
Converts given variable to distance with units.
function ng_formatDistance( v, def, precision, formatfnc, userdata )
Converts given variable from number of minutes to string time.
function ng_formatMinutes( v, def, ms )
Converts given variable from number of seconds to string time.
function ng_formatSeconds( v, def, ms )
Converts given variable to string followed by SI units.
function ng_formatSIUnits( v, units, def, allowedpref, precision, formatfnc, userdata, binary )
Formats time to string.
function ng_FormatTime( date, format, def )
Converts given variable to web address.
function ng_formatWWW( s, def )
Converts UNIX timestamp to date.
function ng_fromUnixTimestamp( d, def )
Converts given variable from UTC date.
function ng_fromUTCDate( d, def )
Gets value of page URL parameter.
function ng_GET( p )
Gets current (computed) style of element.
function ng_GetCurrentStyle( o, s )
Extracts pixels value from current (computed) style of element.
function ng_GetCurrentStylePx( o, s )
Tries to figure out the date format from given text date.
function ng_GetDateFormat( val, preferEuro )
Gets SI units definition from given string with units.
function ng_getSIUnits( v, units, def )
Gets array, where keys are url encoded URL safe chars (RFC1738) and values are just URL safe chars
function ng_GetURLSafeCharsEncoded()
Encodes special characters in hash(fragment) part of URL.
function ng_HashEncode( s, safechars, escscheme )
Decodes hexadecimal encoded string.
function ng_Hex2Str( v, p, def )
Decode special HTML characters and remove HTML tags (&, <, >, ") to its native form.
function ng_htmlDecode( s, replacecrlf, replacespaces )
Encodes special HTML characters (&, <, >, “) to its HTML form.
function ng_htmlEncode( s, replacecrlf )
Finds given value in indexed array.
function ng_idxInArray( value, arr, fromidx, toidx, cmpfnc, userdata )
Tests if given value is in indexed array.
function ng_inArray( value, arr, fromidx, toidx, cmpfnc, userdata )
Determines if element is present in browser’s document object model (DOM).
function ng_inDOM( e )
Tests if page is opened in IFRAME.
function ng_InIFRAME()
Tests if given variable represents, or can be lossless converted to, an area.
function ng_isArea( v )
Detects if variable is indexed array.
function ng_IsArrayVar( o )
Tests if value of given variable is ASCII string.
function ng_isASCII( s )
Tests if given variable is, or can be lossless converted to, a byte.
function ng_isByte( v )
Tests if given variable is, or can be lossless converted to, a date object.
function ng_isDate( v, format )
Tests if given variable is, or can be lossless converted from, date string in ISO 8601 format.
function ng_isDateISO8601( v )
Tests if given variable is, or can be lossless converted to, a DECIMAL.
function ng_isDECIMAL( v, digits, frac_digits )
Tests if value of given variable contains only digits.
function ng_isDigits( s )
Tests if given variable represents, or can be lossless converted to, a distance.
function ng_isDistance( v )
Tests if value of given variable is e-mail.
function ng_isEmail( s )
Tests if given variable is undefined.
function ng_isEmpty( n )
Tests if given variable is undefined or Null.
function ng_isEmptyOrNull( n )
Tests if given variable is, or can be lossless converted to, a float number.
function ng_isFloat( v )
Tests if given variable represents hexadecimal numbers.
function ng_isHex( s )
Tests if given variable is, or can be lossless converted to, an integer number.
function ng_isInteger( v )
Tests if given variable has invalid value according its type.
function ng_isInvalid( n )
Tests if value of given variable is IP4 address.
function ng_isIP4( s )
Tests if value of given variable is IP6 address.
function ng_isIP6( s )
Tests if given variable is, or can be lossless converted to, a long.
function ng_isLong( v )
Tests if given variable represents, or can be lossless converted to, minutes.
function ng_isMinutes( v )
Tests if given variable is Null.
function ng_isNull( n )
Tests if given variable is, or can be lossless converted to, a number.
function ng_isNumber( v )
Tests if given variable is, or can be lossless converted to, a NVARCHAR.
function ng_isNVARCHAR( v, size )
Tests if given variable is, or can be lossless converted to, a signed byte.
function ng_isSByte( v )
Tests if given variable represents, or can be lossless converted to, seconds.
function ng_isSeconds( v )
Tests if given variable is, or can be lossless converted to, a short.
function ng_isShort( v )
Tests if given variable is, or can be lossless converted from, string with SI units.
function ng_isSIUnits( v, units, allowedpref )
Tests if given variable is, or can be lossless converted to, a unsigned long.
function ng_isULong( v )
Tests if value of given variable is unicode string.
function ng_isUnicode( s )
Tests if value of given variable is URL.
function ng_isURL( s )
Tests if given variable is, or can be lossless converted to, a unsigned short.
function ng_isUShort( v )
Tests if value of given variable is web address.
function ng_isWWW( s )
Detects if year is a leap year.
function ng_LeapYear( y )
Creates computed viewmodel property which transforms value of given property to value in lookup table.
ko.ng_lookup = function ( viewModel, propname, lookupviewmodel, lookuppropname, lookupkeyfield, lookupdatafield )
Trims leading spaces.
function ng_LTrim( s )
Creates computed viewmodel property which is set to TRUE if all enumerated properties equals to specified values.
ko.ng_matches = function ()
Creates computed viewmodel property which is set to TRUE if at least one of enumerated properties equal to specified value.
ko.ng_matches_one = function ()
Merges two control definitions.
function ng_MergeDef( dst, def, allowundefined, callback )
Merges two variables.
function ng_MergeVar( d, o, allowundefined, callback )
Marks viewmodel property as non-serializable.
ko.ng_noserialize = function ( v )
Determines if element attribute is not defined.
function ng_nullAttr( v )
Gets element outer height.
function ng_OuterHeight( o )
Gets element outer width.
function ng_OuterWidth( o )
Determines absolute position to parent object or document.
function ng_ParentPosition( o, parent )
Converts given variable from area with units to number.
function ng_parseArea( v, def )
Converts given variable from bytes with units to number.
function ng_parseBytes( v, def )
Parses date from string.
function ng_ParseDate( date, format, def )
Converts given variable from date string in ISO 8601 format to date.
function ng_parseDateISO8601( s, def )
Parses date and time from string.
function ng_ParseDateTime( val, format, def )
Converts given variable from distance with units to number.
function ng_parseDistance( v, def )
Parses date string formated by JSON encoder.
function ng_ParseJSONDateTime( val, def )
Converts given variable from string time to number of minutes.
function ng_parseMinutes( v, def )
Converts given variable from string time to number of seconds.
function ng_parseSeconds( v, def )
Converts given variable from string with SI units to number.
function ng_parseSIUnits( v, units, def, allowedpref, binary )
Parses time from string.
function ng_ParseTime( date, format, def )
Pre-loads image into browser’s memory.
function ng_PreloadImage( url )
Starts preloading images block.
function ng_PreloadImagesBegin()
Ends preloading images block and call callback function after all images are loaded.
function ng_PreloadImagesEnd( callback )
Adds quotes to string.
function ng_QuoteStr( v, q )
Redirects user to specified URL.
function ng_Redirect( url, topframe )
Re-loads image in browser’s memory.
function ng_ReloadImage( url )
Trims trailing spaces.
function ng_RTrim( s )
Marks viewmodel property as serializable.
ko.ng_serialize = function ( v )
Sets element left, top, width and height.
function ng_setBoundsNotIE( o, l, t, w, h )
Sets value as reference into object property.
function ng_SetByRef( obj, prop, val )
Sets copy of given value into object property.
function ng_SetByVal( obj, prop, val )
Sets element client height.
function ng_SetClientHeight( o, v )
Sets element client width.
function ng_SetClientWidth( o, v )
Assigns ngMenu to control.
function ng_SetControlMenu( c, m )
Assigns popup ngMenu to control.
function ng_SetControlPopup( c, m )
Sets element left, top.
function ng_setLeftTopNotIE( o, l, t )
Sets element outer height.
function ng_SetOuterHeight( o, v )
Sets element outer width.
function ng_SetOuterWidth( o, v )
Sets element height defined by style property.
function ng_SetStyleHeight( o, v )
Sets element width defined by style property.
function ng_SetStyleWidth( o, v )
Creates computed viewmodel property which formats string (PHP like sprintf function) based on values of other viewmodel properties.
ko.ng_sprintf = function ()
Formats string (PHP like sprintf function).
function ng_sprintf()
Strips backslash ‘\’ from end of a string.
function ng_StripBackslash( v )
Strips given prefix from a string.
function ng_StripPrefix( v, pref, caseinsensitive )
Strips quotes from quoted string.
function ng_StripQuotes( v, q )
Strips units from given string.
function ng_StripSIUnits( v, units )
Strips slash ‘/’ from end of a string.
function ng_StripSlash( v )
Strips given suffix from a string.
function ng_StripSuffix( v, suff, caseinsensitive )
Strip parameters from URL.
function ng_StripURLParams( url )
Gets element height defined by style property.
function ng_StyleHeight( o )
Gets element width defined by style property.
function ng_StyleWidth( o )
Creates computed viewmodel property which is repeatedly updated on specified interval.
ko.ng_timer = function ( interval )
Converts given variable to ASCII string.
function ng_toASCII( s, def )
Converts given variable to boolean.
function ng_toBool( v )
Converts given variable to byte.
function ng_toByte( v, def )
Converts given variable to date object.
function ng_toDate( v, def, format )
Converts given variable to date object .
function ng_toDateOnly( v, def, format )
Converts given variable to DECIMAL.
function ng_toDECIMAL( v, digits, frac_digits, def )
Converts given variable to float number.
function ng_toFloat( v, def )
Converts given variable to hexadecimal.
function ng_toHex( v, p, def )
Converts given variable to integer number.
function ng_toInteger( v, def )
Converts given variable to long.
function ng_toLong( v, def )
Converts given variable to non-unicode string.
function ng_toNonUnicode( s, def )
Converts given variable to number.
function ng_toNumber( v, def )
Converts given variable to NVARCHAR.
function ng_toNVARCHAR( v, size, def )
Converts given variable to object.
function ng_toObject( v, def )
Converts given variable to signed byte.
function ng_toSByte( v, def )
Converts given variable to short.
function ng_toShort( v, def )
Converts given variable to string.
function ng_toString( v, def )
Converts given variable to unsigned long.
function ng_toULong( v, def )
Converts given variable to UNIX timestamp.
function ng_toUnixTimestamp( d, def )
Converts given variable to unsigned short.
function ng_toUShort( v, def )
Converts given variable to UTC date.
function ng_toUTCDate( d, def )
Trims leading and trailing spaces.
function ng_Trim( s )
Tests if type of given variable is an indexed array.
function ng_typeArray( v )
Tests if type of given variable is a date object.
function ng_typeDate( d )
Tests if type of given variable is a number.
function ng_typeNumber( n )
Tests if type of given variable is a float number.
function ng_typeNumberFloat( n )
Tests if type of given variable is an integer number.
function ng_typeNumberInt( n )
Tests if type of given variable is a valid object.
function ng_typeObject( o )
Tests if type of given variable is a string.
function ng_typeString( n )
JavaScript unescape with proper handling of plus (+) character.
function ng_unescape( str, escscheme )
Removes thousands separator from string.
function ng_Unformat3Num( v, sep )
Encodes special characters in URL.
function ng_URLEncode( str, allasunicode, safechars, escscheme )
JavaScript decode URI with characters in utf-8 representation.
function ng_UTF8Decode( str )
Encodes characters in url to utf-8 representation.
function ng_UTF8Encode( str, safechars )
JavaScript decode URI parameter in utf-8 representation.
function ng_UTF8ParamDecode( str )
Encodes characters in URI parameter to utf-8 representation.
function ng_UTF8ParamEncode( str )
Tests if value of one variable equals to value of second variable.
function ng_VarEquals( a, b, noobj )
Formats ViewModel error object to one or more text messages.
function ng_ViewModelFormatError( err )
Returns window height.
function ng_WindowHeight()
Returns window width.
function ng_WindowWidth()
Adds new function to existing event handler (callback).
function ngAddEvent( ev, fce )
Begins block of locale definition with id lngid.
function ngBeginLang( lng )
Creates control by definition.
function ngCreateControl( d, ref, parent )
Creates control by definition and type.
function ngCreateControlAsType( def, type, ref, parent )
Creates hint by definition.
function ngCreateHint( def, parent )
Creates hint by definition.
function ngCreateTextHint( def, text, parent )
Creates window by definition.
function ngCreateWindow( def, parent )
Gets control object by DOM element.
function ngGetControlByElement( elm, type )
Gets control object by ID.
function ngGetControlById( id, type )
Checks if HammerJS library is present.
function ngHammerJS()
Tests if debug is enabled.
function ngHASDEBUG()
Defines resource string/object.
function ngLang( id, data, lng )
Gets client library path.
function ngLibPath( lib, file )
Gets client library version.
function ngLibVersion( lib )
Creates dialog.
function ngMessageDlg( type, text, caption, onclose, def )
Substitutes undefined or null values with defaults.
function ngNullVal( v, defv )
Creates hint by definition.
function ngPopupCtrlHint( def, ctrl, anchor, parent )
Creates hint by definition.
function ngPopupCtrlTextHint( def, ctrl, text, anchor, parent )
Creates hint by definition.
function ngPopupHint( def, x, y, anchor, parent )
Creates hint by definition.
function ngPopupTextHint( def, x, y, text, anchor, parent )
Renders supported pointer start events as HTML (onmousedown, ontouchstart, ...)
function ngPtrHTMLStartEvents( html, ev )
Gets input pointer start events (mousedown, touchstart, ...)
function ngPtrStartEvents()
Gets locale resource object.
function ngRes( rid )
Shows modal window curtain.
function ngStartModalControl()
Hides modal window curtain.
function ngStopModalControl()
Gets locale text.
function ngTxt( t, defval )
Substitutes undefined values with defaults.
function ngVal( v, defv )