Example:
<UserPref name="text" display_name="Fill in your text:"
default_value="example" datatype="string">
</UserPref>
in the javascript part you can use the user preferences:
var prefs = new _IG_Prefs(__MODULE_ID__);
var user_text = prefs.getString("text");
Display text e.g. document.write("user_text")
Hope this helps
On 11 nov, 12:23, Teun <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am new to the gadget creating, and I want to make something that
> should be really simple, but I cannot figure it out.
>
> I want to make something configurable by the user, and let it display
> as normal text.
>
> I know I have to do something with the <UserPref>, but I cannot
> figure out what exactly. The Docs didn't help me that much either,
> since it's more aimed at the professionals ;)
>
> Any help please? Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---