String QML Type
The String object represents a string value More...
Import Statement: | import QtQml 2.2 |
Methods
- string arg(value)
Detailed Description
The QML String object extends the JS String object with the arg() function.
See also ECMAScript Language Specification.
Method Documentation
Returns a copy of this string with the lowest numbered place marker replaced by value, i.e., %1, %2, ..., %99. The following example prints "There are 20 items"
var message = "There are %1 items" var count = 20 console.log(message.arg(count))
© 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.