La proprietà principale è l'arraydata, questa proprietà è un vero array dove ogni chiave rappresenta la voce stessa. Prima di cominciare vi consiglio di settare la proprietà readOnly su true. Ad esempio con questo codice:
put empty into temp["Lunedì"]["Carlo"] put empty into temp["Lunedì"]["Mario"] put empty into temp["Martedì"]["Giovanna"] put empty into temp["Martedì"]["Laura"] set the sortType of widget 1 to "text" set the sortOrder of widget 1 to "ascending" set the arraydata of widget 1 to tempotterrete questo:
Non c'è limite al numero di nodi e sotto nodi che potete fare.
Inoltre se una voce non è un nodo per altre voci, potete anche assegnargli un valore. Esempio:
put "$ 10" into temp["Lunedì"]["Carlo"] put "$ 20" into temp["Lunedì"]["Mario"] put "ristorante" into temp["Martedì"]["Giovanna"] put "parco" into temp["Martedì"]["Laura"] set the sortType of widget 1 to "text" set the showseparator of widget 1 to true set the sortOrder of widget 1 to "ascending" set the arraydata of widget 1 to temp
Risultato:


Nessun commento:
Posta un commento