While you can also create a UI with Google's recently released Html Service, the UI Service has the nice properties of sharing a common design with Google Docs and working smoothly across all of the browsers Docs supports. UiBot works with all of the ui elements supported by the UI Service.
Details and a brief tutorial are at:
https://github.com/gotdan/UiBot#overview
Here's a snippet of UiBot code:
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
var form = { | |
wType: 'HorizontalForm', | |
items: [{ | |
fieldLabel : 'Name:', | |
wType : 'TextBox', | |
name : 'userName' | |
},{ | |
fieldLabel : 'Age:', | |
wType : 'TextBox', | |
name : 'age' | |
},{ | |
fieldLabel : 'Period:', | |
wType : 'ListBox', | |
name : 'periodList', | |
data : ["Day", "Month","Quarter", "Year"], | |
selected : "Month" | |
}] | |
}; | |
var bot = new UiBot.UiBot({ | |
title: 'Test App!', | |
items: [ form ] | |
}); |
A very informative article.
ReplyDelete