2013-01-03 59 views

回答

0
var tree = app.createTree(); 
tree.addItem(app.createTreeItem(
    app.createLabel("Tree Item 1").setStyleAttribute("color","green"))); 
tree.addItem(app.createTreeItem(
    app.createLabel("Tree Item 2").setStyleAttribute("color","red"))); 

編輯:對不起你說的名單,但我讀了樹出於某種原因。

不,這不能完成,因爲底層瀏覽器列表小部件不支持它。使用HtmlService和jQuery可以實現類似的事情,但不能在UiApp中實現。

+0

謝謝,我會按照你的建議嘗試這個課程。 – timchen

相關問題