This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.12 | |
import QtQuick.Controls 2.5 | |
Item { | |
Button { | |
text: qsTr("Run For Of Sample") | |
onClicked: { | |
let census = [ | |
{ country: "France", population: 66.99 }, | |
{ country: "Australia", population: 24.6 }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.12 | |
import QtQuick.Controls 2.5 | |
Item { | |
Button { | |
text: qsTr("Run For Sample") | |
onClicked: { | |
var census = [ | |
{ country: "France", population: 66.99 }, | |
{ country: "Australia", population: 24.6 }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.12 | |
import QtQuick.Controls 2.5 | |
TextField { | |
validator: RegExpValidator { | |
regExp: /[0-9]{3}-[A-Za-z]{3}/ | |
} | |
placeholderText: qsTr("Type in a license plate of the pattern 999-AAA") | |
text: "123-XYZ" | |
color: acceptableInput ? "green" : "red" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.12 | |
import QtQuick.Controls 2.15 | |
import QtQuick.Layouts 1.15 | |
Page { | |
Frame { | |
width: parent.width | |
ColumnLayout { | |
width: parent.width |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.12 | |
import QtQuick.Controls 2.5 | |
TextField { | |
validator: IntValidator { | |
bottom: 25 | |
top: 75 | |
} | |
placeholderText: qsTr("Type in an integer between 25 and 75") | |
text: "34" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.12 | |
import QtQuick.Controls 2.5 | |
TextField { | |
inputMask: "999-AAA" | |
placeholderText: qsTr("Type in a license plate of the pattern 999-AAA") | |
text: "123-XYZ" | |
color: acceptableInput ? "green" : "red" | |
selectByMouse: true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.12 | |
import QtQuick.Controls 2.5 | |
import ArcGIS.AppFramework 1.0 | |
Item { | |
TextField { | |
width: parent.width | |
validator: InputValidator { | |
validate: function (input, position) { | |
if (input.match(/unicorn/)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.12 | |
import QtQuick.Controls 2.5 | |
import ArcGIS.AppFramework 1.0 | |
Item { | |
Button { | |
text: qsTr( "Test Promise async/await (Babel)" ) | |
onClicked: testPromise() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.12 | |
import QtQuick.Controls 2.5 | |
import ArcGIS.AppFramework 1.0 | |
Item { | |
Button { | |
text: qsTr( "Test Promise async/await" ) | |
onClicked: { | |
(async () => { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.12 | |
import QtQuick.Controls 2.5 | |
import ArcGIS.AppFramework 1.0 | |
Item { | |
Button { | |
text: qsTr("Test Promise nesting") | |
onClicked: { | |
download( "GET", "https://community.esri.com/groups/appstudio" ) | |
.then( (data) => { |