1 /****************************************************************************
3 ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/
6 ** This file is part of the documentation of the Qt Toolkit.
8 ** $QT_BEGIN_LICENSE:FDL$
9 ** GNU Free Documentation License
10 ** Alternatively, this file may be used under the terms of the GNU Free
11 ** Documentation License version 1.3 as published by the Free Software
12 ** Foundation and appearing in the file included in the packaging of
16 ** Alternatively, this file may be used in accordance with the terms
17 ** and conditions contained in a signed written agreement between you
26 ****************************************************************************/
29 \page jsfunctionlist.html
30 \title List of JavaScript Objects and Functions
31 \brief A list of objects, functions, and properties supported in QML.
33 This reference contains a list of objects, functions and
34 properties supported by the \l{The QML Engine}{QML engine}. For a detailed
35 description, see the \l{External: ECMA-262} specification.
37 \section1 The Global Object
39 \section2 Value Properties
47 \section2 Function Properties
51 \li parseInt(string, radix)
52 \li parseFloat(string)
55 \li decodeURI(encodedURI)
56 \li decodeURIComponent(encodedURIComponent)
58 \li encodeURIComponent(uriComponent)
61 \section2 Constructor Properties
81 \section2 Other Properties
88 \section1 The Object Object
90 \section2 Object Constructor
92 \section3 Function Properties
96 \li getOwnPropertyDescriptor(O, P)
97 \li getOwnPropertyNames(O)
98 \li create(O [, Properties])
99 \li defineProperty(O, P, Attributes)
100 \li defineProperties(O, Properties)
106 \li preventExtensions(O)
110 \section2 Object Prototype
112 \section3 Function Properties
118 \li hasOwnProperty(V)
120 \li propertyIsEnumerable(V)
123 \section1 Function Objects
125 \section2 Function Prototype
127 \section3 Function Properties
131 \li apply(thisArg, argArray)
132 \li call(thisArg [, arg1 [, arg2, ...]])
133 \li bind((thisArg [, arg1 [, arg2, …]])
136 \section1 Array Objects
138 \section2 Array Prototype Object
140 \section3 Function Properties
145 \li concat([item1 [, item2 [, ...]]])
148 \li push([item1 [, item2 [, ...]]])
151 \li slice(start, end)
153 \li splice(start, deleteCount[, item1 [, item2 [, ...]]])
154 \li unshift([item1 [, item2 [, ...]]])
155 \li indexOf(searchElement [, fromIndex])
156 \li lastIndexOf(searchElement [, fromIndex])
157 \li every(callbackfn [, thisArg])
158 \li some(callbackfn [, thisArg])
159 \li forEach(callbackfn [, thisArg])
160 \li map(callbackfn [, thisArg])
161 \li filter(callbackfn [, thisArg])
162 \li reduce(callbackfn [, initialValue])
163 \li reduceRight(callbackfn [, initialValue])
166 \section1 String Objects
168 \section2 String Prototype Object
170 \section3 Function Properties
177 \li concat([string1 [, string2 [, ...]]])
178 \li indexOf(searchString ,position)
179 \li lastIndexOf(searchString, position)
180 \li localeCompare(that)
182 \li replace(searchValue, replaceValue)
184 \li slice(start, end)
185 \li split(separator, limit)
186 \li substring(start, end)
188 \li toLocaleLowerCase()
190 \li toLocaleUpperCase()
194 \section1 Boolean Objects
196 \section2 Boolean Prototype Object
198 \section3 Function Properties
205 \section1 Number Objects
207 \section2 Number Prototype Object
209 \section3 Function Properties
214 \li toFixed(fractionDigits)
215 \li toExponential(fractionDigits)
216 \li toPrecision(precision)
219 \section1 The Math Object
221 \section2 Value Properties
234 \section2 Function Properties
247 \li max([value1 [, value2 [, ...]]])
248 \li min([value1 [, value2 [, ...]]])
257 \section1 Date Objects
259 \section2 Date Prototype Object
261 \section3 Function Properties
268 \li toLocaleDateString()
269 \li toLocaleTimeString()
286 \li getMilliseconds()
287 \li getUTCMilliseconds()
288 \li getTimeZoneOffset()
290 \li setMilliseconds(ms)
291 \li setUTCMilliseconds(ms)
292 \li setSeconds(sec [, ms])
293 \li setUTCSeconds(sec [, ms])
294 \li setMinutes(min [, sec [, ms]])
295 \li setUTCMinutes(min [, sec [, ms]])
296 \li setHours(hour [, min [, sec [, ms]]])
297 \li setUTCHours(hour [, min [, sec [, ms]]])
300 \li setMonth(month [, date])
301 \li setUTCMonth(month [, date])
302 \li setFullYear(year [, month [, date]])
303 \li setUTCFullYear(year [, month [, date]])
309 \section1 RegExp Objects
311 \section2 RegExp Prototype Object
313 \section3 Function Properties
321 \section1 Error Objects
323 \section2 Error Prototype Object
325 \section3 Value Properties
332 \section3 Function Properties
338 \section1 The JSON Object
340 \section2 Function Properties
343 \li parse(text [, reviver])
344 \li stringify(value [, replacer [, space]])