16 messages in com.googlegroups.google-gadgets-apiRe: Google Gadgets: New Features and ...| From | Sent On | Attachments |
|---|---|---|
| Dann (Google Employee) | 17 Jan 2007 17:40 | |
| iblu | 21 Jan 2007 11:26 | |
| game...@gmail.com | 22 Jan 2007 17:27 | |
| adszhu | 24 Jan 2007 01:45 | |
| Wisgary | 24 Jan 2007 18:27 | |
| Dann (Google Employee) | 24 Jan 2007 18:35 | |
| Wisgary | 24 Jan 2007 20:20 | |
| Bonstio | 25 Jan 2007 02:23 | |
| abow...@gmail.com | 26 Jan 2007 19:44 | |
| Bernie | 29 Jan 2007 10:10 | |
| Dann (Google Employee) | 29 Jan 2007 17:47 | |
| Jerome | 11 Feb 2007 14:49 | |
| Agus | 12 Feb 2007 20:44 | |
| Dann (Google Employee) | 14 Feb 2007 18:26 | |
| Jerome | 15 Feb 2007 20:41 | |
| VizionQuest | 16 Feb 2007 15:31 |
| Subject: | Re: Google Gadgets: New Features and Updates!![]() |
|---|---|
| From: | Jerome (jero...@gmail.com) |
| Date: | 02/15/2007 08:41:26 PM |
| List: | com.googlegroups.google-gadgets-api |
Hi Dann,
Thanks for the reply. What you discribed here is how to pre-define the default value.
I was asking for was a way to use the list as a multi select enum. In other words, rather than offering the user a text box to enter values for the list, the wished for "list-enum" would allow the user to select, for instance, from a list of cities and add the one they'd like to the list.
With the current API, we either have to use check boxes (datatype="bool"), but this looks bad if you have 100s of items to select from (and you go over the 2k limit on user prefs real quick), or this must be handled in the gadget itself, not in the user prefs (not consistent to have some gadget settings in the user prefs area and some other in the gadget body).
Thanks,
Jerome
On Feb 14, 8:26 pm, "Dann (Google Employee)" <d....@google.com> wrote:
Hey Jerome,
There's an easy way to set default values for a list userpref. Simply delimit each list value with a pipeline character '|'.
Here's an example: <UserPref name="cities" datatype="list" default_value="Mountain View| San Francisco|Berkeley|New York"/>
The documentation shows further
details:http://www.google.com/apis/gadgets/fundamentals.html#list
Hope this helps!
Dann
On Feb 11, 2:49 pm, "Jerome" <jero...@gmail.com> wrote:
Hi Dann,
On Jan 17, 7:40 pm, "Dann (Google Employee)" <d....@google.com> wrote:
We've recently released some new features and updates to the documentation. Please take a moment and check out what's new:
+ New userpref data type: Lists
This new userpref type is a great addition, thanks! For some gadgets, a list userpref type with a way to predefine the values to choose frome would be ever more useful.
Jerome- Hide quoted text -
- Show quoted text -




