For that purpose you might consaider using the config instead of a Input layout. Then the users could take your control, type in the names they want to and drag it on to an empty grid.
To do that your
Controls[] would need to look like the following:
- Code: Select all
Controls:[
{
Name:"MyControl",
Skins:["MySkin"],
Config:{
Description:"This Is a description.",
Options:[
{
Type:"Text",
Name:"TextInput",
Title:"Title of the Input field :",
Value:"predefined text",
},
{
Name:"DropDown",
Title:"Title Of the Drop Down",
Type:"Drop",
Items:["Preselected Value", "value1", value2", "value3"],
Params:"verbatim"
}
],
},
Width:4,
Height:6
}
]
Take a look at the Sample2 of the SDK to see more examples
Edit: you don't need the dropdown, but it was in there and I thought you might want to see it too
