Bill
(Bill)
1
Text control - I have this for properties:
I’m wondering why the default text is not showing up?
{
“groups”: [{
“title” : “Group Name1”,
“icon”: “textformat.size”,
“properties”: [
{“title”: “Title:”,
“property”: “title”,
“text”: {
“default”: “Hi”,
“subtitle”: “A subtitle”
}
}
]
}]
}
upssjw
(Steve W)
2
I copied the text property straight from the manual and this did not show, might be my misunderstanding
although I have just got some text property to work
dan
(Dan C.)
3
I’ve just taken a look at the manual and it was missing a comma on line 10 after “Hello World”
Here’s the working code and I’ve updated the manual.
{
"groups": [
{
"title" : "Text Field Example",
"properties" : [
{
"title": "Text Field",
"property": "MyTextField",
"text" : {
"default" : "Hello World",
"subtitle" : "one",
}
}
],
}]
}
Bill
(Bill)
4
@dan If you look closely in your screen shot, you will see that the default ‘Hello World’ is not being placed in the original control.
dan
(Dan C.)
5
It’s because it’s just been created, If you drop in a fresh copy of the Component, the default text works.
2 Likes