Creates an editable text box. When the user types two characters or more, the application tries to automatically completes the entry, based on elements in the given feed.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
data |
Data source declaration. This can be the id of a data declaration, an RSS link, or a query expression (e.g., ${test}). |
ref |
An XPath query to the element in the feed the module or control should operate on. |
value |
XPath query to the values of
suggestions in the data feed. Optional,
defaults to "atom:title" |
Displays a calendar
widget. Dates that have entries associated with
them are shown in bold. This tag looks for gd:when elements in the
feed and uses the value of the startTime attribute for the date.
Must be contained by: gm:page.
Can contain: gm:handleEvent.
| Attribute | Description |
|---|---|
id |
Unique identifier for the object. |
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
data |
Data source declaration.
This can be the id of a data declaration, an
RSS link, or a query expression (for example, ${test}). |
ref |
XPath query to the element in the feed to be displayed by the calendar widget. |
Creates a checkbox bound to the feed element assigned via an XPath statement.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
ref |
An XPath query to the element in the feed the module or control should operate on. |
Defines a set of sections that appear within a tabs tag.
Must be contained by: gm:page.
Can contain: gm:section.
| Attribute | Description |
|---|---|
id |
Unique identifier for the object. |
Displays a template for the user to type a new entry. This tag can only be used with write-enabled feeds.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
label |
The text of the label on the create button. |
style |
Inline CSS syntax used to style the object. |
class |
CSS class used to style the object. |
Declares a data source definition. Use this tag to define data inline.
Must be contained by: gm:page.
| Attribute | Description |
|---|---|
id |
Unique identifier for the object. |
data |
Data source declaration.
This can be the id of a data declaration, an
RSS link, or a query expression (for example, ${test}). |
Creates a textbox bound to a date picker to allow users to easily select a date.
Note that if the date in the feed includes a time portion, that time portion is dropped. If you save a date object to a feed, a default time portion of Z00:00:00 is added to the date.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
ref |
An XPath query to the element in the feed the module or control should operate on. |
Displays the content of a feed or feed element bound via a XPath statement.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
ref |
An XPath query to the element in the feed the module or control should operate on. |
Display only certain entries in a feed, according to the given filtering criteria. See the filtering document for more information.
Must be contained by: gm:list.
| Attribute | Description |
|---|---|
name |
Used for referring to this filter from the JavaScript API. |
ref |
Allow only values specified by this feed reference. |
value |
Allow only entries that contain this value. |
min |
Allow only entries greater than or equal to this value. |
max |
Allow only entries less than or equal to this value. |
Specifies an object that listens for events, then performs an action when the event occurs.
Must be contained by: gm:list, gm:map, gm:search, gm:item, gm:calendar.
| Attribute | Description |
|---|---|
src |
ID of the object that is being monitored for events. If not specified, the object containing the handleEvent is monitored. |
event |
Event to listen for. Possible values: all, select, save, saveelement, cancel, delete, edit, load, refresh, repaint, create, onrefresh, submit, toggle. |
execute |
JavaScript to be executed when the event is detected. Can be inline code or a function name. |
Displays the HTML content of a feed element bound via an XPath
statement. The feed element must be either atom:title, atom:summary, or atom:content.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
ref |
An XPath query to the element in the feed the module or control should operate on. |
Displays the image content of a feed element bound via an XPath statement.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
ref |
An XPath query to an HREF element in the feed that links to the image. |
width |
The width of the image. |
height |
The height of the image. |
mode |
If both dimensions are specified, how the image is adjusted
to the bounding box. Can be fit (default), or
fill. |
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
Declares an item module. Item modules allows users to input information that is saved as an item in a feed. You can also use an item module to display an individual item of a feed.
Must be contained by: gm:page.
Can contain: gm:handleEvent.
| Attribute | Description |
|---|---|
id |
Unique identifier for the object. |
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
data |
Data source declaration. This can be the id of a data declaration
or a query expression (e.g., ${test}). The feed must be writable. |
template |
Template declaration
used to lay out and style the form. This can be the id of a user defined template, or one of the built-in values (blog,
task,simple).
|
create |
If true, this element will be used to add a new item to the feed. |
Creates a link using an element in the data source.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
label |
The label display for the link. |
labelref |
An XPath query to the element in the feed that should be displayed as the label of the link. If no element exists then the value of the label attribute is used |
img |
Href of an image to use for the link (instead of a label). |
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
ref |
An XPath query to the element in the feed the module or control should operate on. |
Declares a list module. The list module is used to display a collection of entries. The source of those entries is specified by the data attribute. The list has a default template you can override by declaring a template object and referencing that template object in the list tag.
Must be contained by: gm:page.
Can contain: gm:handleEvent, gm:filter.
| Attribute | Description |
|---|---|
id |
Unique identifier for the object. |
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
data |
Data source declaration. This can be the id of a data declaration, an RSS link, or a query expression (e.g., ${test}). |
template |
References a template declaration used to layout and style the list. This can be the id of a user defined template, or one of the built-in values {simple, task, blog}. |
pagesize |
Number of visible entries to display per page. The default number is 10. |
selection |
Set to false to disable selection within this list. It is true by default. |
onselect |
Names a function that will be called when a list entry is selected. |
Declares a map module.
Must be contained by: gm:page.
Can contain: gm:handleEvent.
| Attribute | Description |
|---|---|
id |
Unique identifier for the object. |
width |
Sets the width of the map. |
height |
Sets the height of the map. |
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
data |
Data source declaration. This can be the id of a data declaration, an RSS link, or a query expression (e.g., ${test}). |
latref |
XPath query to the lat element in an entry in the feed. Map is centered on this latitude. |
lngref |
XPath query to the long element in an entry in the feed. Map is centered on this longitude. |
infotemplate |
References a template declaration used to layout and style infobubble attached to markers on the map. This is the id of a user defined template. |
lat |
Map is centered on the point at this latitude. |
lng |
Map is centered on the point at this longitude. |
zoom |
Initial zoom level for map. 0 is fully zoomed out; 19 is fully zoomed in. |
control |
Type of map navigation control to show. Can be none, small (default) or large. |
maptypes |
Show the map type switcher (Map/Satellite/Hybrid). Can be true or false (default). |
create |
Show the button to create new pins (the button will only shows up if the bound feed is writable). Can be true or false (default). |
Displays the numeric content of a feed element bound via a XPath statement.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
ref |
An XPath query to the element in the feed the module or control should operate on. |
<gm:page> is the outermost tag for every GME application, containing all other tags. The title attribute is required. You can use HTML, CSS, and JavaScript tags (along with GME tags) in your application.
This tag can contain: gm:tabs, gm:container, gm:template, gm:list, gm:map, gm:data, gm:calendar, gm:item, gm:search.
| Attribute | Description |
|---|---|
title |
Application's display name. |
css |
URL of a CSS file used by this application. |
class |
CSS class for styling this tag. |
onload |
JavaScript function called when the application loads. |
authenticate |
If true, user must sign in to a Google Account to use this application. |
gadget |
If true, page can be deployed as a Google Gadget. |
Displays paging links for lists with multiple pages of data.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
| (none) |
Specify a search parameter for the search module.
Must be contained by: gm:search.
| Attribute | Description |
|---|---|
name |
The name of the parameter that will be used in the module |
value |
The value associated with the name or the parameter |
Displays the rating content of a feed element bound via a XPath statement.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
style |
Specify CSS style rules for the object. |
class |
Specify a CSS class for the object. |
ref |
An XPath query to the element in the feed the module or control should operate on. |
Declares a search module. The search module is used to search over a data object.
Must be contained by: gm:page.
Can contain: gm:handleEvent, gm:param.
| Attribute | Description |
|---|---|
id |
Unique identifier for the object. |
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
data |
Data source declaration. This can be the id of a data declaration, an RSS link, or a query expression (e.g., ${test}). |
ref |
An XPath query to the element in the feed the module or control should operate on. |
param |
Sets which query parameter that the input from the search module will be bound to. |
Defines a group of modules that appear in a tab within a gm:tabs tag.
Must be contained by: gm:container.
| Attribute | Description |
|---|---|
id |
Unique identifier for the object. |
title |
Section title; used as title of the tab defined by the section. |
Creates a set of tabs in your application.
Must be contained by: gm:page.
| Attribute | Description |
|---|---|
target |
ID of a container tag. Each tab is a section within the container. |
Declares a template definition. HTML layout and controls are placed in templates to display data from a feed.
Must be contained by: gm:page.
Can contain: gm:create, gm:editButtons, gm:pager, gm:toggle, gm:text, gm:textarea, gm:autoComplete, gm:date, gm:debug, gm:html, gm:image, gm:link, gm:number, gm:video, gm:checkbox, gm:rating.
| Attribute | Description |
|---|---|
id |
Unique identifier for the object. |
Displays the text content of a feed element bound via an XPath statement.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
ref |
An XPath query to the element in the feed the module or control should operate on. |
Displays the text content of a feed element bound via an XPath statement in a textarea.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
ref |
An XPath query to the element in the feed the module or control should operate on. |
Toggles the display of another tag when placed around that tag. The element to be toggled must have the "gm-toggled" class attribute assigned to it.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
| (none) |
Displays the video content of a feed element bound via a XPath statement.
Must be contained by: gm:template.
| Attribute | Description |
|---|---|
style |
Inline CSS for styling this tag. |
class |
CSS class for styling this tag. |
ref |
An XPath query to the element in the feed the module or control should operate on. |