.. _dojox/data/GoogleFeedStore: dojox.data.GoogleFeedStore ========================== :Status: Contributed, Draft :Version: 1.0 :Author: Shane O'Sullivan :Available: since V1.2 .. contents:: :depth: 3 The GoogleFeedStore is a store designed to work against Google's feed reading AJAX API. This store is an extension of GoogleSearchStore. **Note:** These stores make use of Google's `AJAX search and feed services. `_ In order to use them in your web-sites, please make sure to read `Google's terms and conditions `_ and agree to them before using these stores. =========== API Support =========== * :ref:`dojo.data.api.Read ` ================== Constructor Params ================== The following parameters are supported by the GoogleFeedStore implementation. +-------------+------------------------------------------------------------------------------------------+----------------------+ | **name** | **description** | **type** | +-------------+------------------------------------------------------------------------------------------+----------------------+ |label |The attribute of the search returns to use as the item's label. Defaults to |string | | |titleNoFormatting. | | +-------------+------------------------------------------------------------------------------------------+----------------------+ |key |Your Google API key (optional) | string | +-------------+------------------------------------------------------------------------------------------+----------------------+ |lang |The language locale to use. Defaults to the browser locale. | string | +-------------+------------------------------------------------------------------------------------------+----------------------+ =============== Item Attributes =============== The following attributes are available on items returned from the GoogleFeedStore +-----------------+-----------------------------------------------------------------------------------------------------------------------------+ |**Attribute** |**Description** | +-----------------+-----------------------------------------------------------------------------------------------------------------------------+ |title |The feed entry title. | +-----------------+-----------------------------------------------------------------------------------------------------------------------------+ |link |The URL for the HTML version of the feed entry. | +-----------------+-----------------------------------------------------------------------------------------------------------------------------+ |content |The full content of the blog post, in HTML format | +-----------------+-----------------------------------------------------------------------------------------------------------------------------+ |summary |A snippet of information about the feed entry, in plain text | +-----------------+-----------------------------------------------------------------------------------------------------------------------------+ |published |The string date on which the entry was published. | | | You can parse the date with new Date(store.getValue(item, "published"). | +-----------------+-----------------------------------------------------------------------------------------------------------------------------+ |categories |An array of string tags for the entry | +-----------------+-----------------------------------------------------------------------------------------------------------------------------+ ============ Query Syntax ============ The query syntax for this store is simple. It takes a single object with the attribute 'url', where the value of the feed to retrieve Query Example ------------- :: { "url" : "http://news.google.com/nwshp?hl=en&tab=wn&output=atom" } ============= Example Usage ============= .. cv-compound :: .. cv :: javascript .. cv :: html Input feed URL here:


Search!


.. cv:: css The following example shows wiring the GoogleFeedStore to dojox.data.DataGrid.