Function
An anonymous object to initialize properties. It expects the following values:
Initializer for the HTML table store.
The HtmlStore can be created in one of two ways: a) by parsing an existing table or list DOM node on the current page or b) by referencing an external url and giving the id of the table or list in that page. The remote url will be parsed as an html page. The HTML table or list should be of the following form: <table id="myTable"> <thead> <tr> <th>Attribute1</th> <th>Attribute2</th> </tr> </thead> <tbody> <tr> <td>Value1.1</td> <td>Value1.2</td> </tr> <tr> <td>Value2.1</td> <td>Value2.2</td> </tr> </tbody> </table> -or- <ul id="myUnorderedList"> <li>Value.1</li> <li>Value.2</li> </ul> -or- <ol id="myOrderedList"> <li>Value.1</li> <li>Value.2</li> </ol>
The
url of the remote page to load
The
id of the table element in the remote page and the option:
Trim
off any surrounding whitespace from the headers (attribute names) and text content of the items in question. Default is false for backwards compatibility.
boolean
Flag to denote if peventCache should be used on xhrGet calls.
boolean
Flag to denote if it should try to load from a data id (nested in the page) The moment the store is created, instead of waiting for first fetch call.
Function
Function to index items found under the id.
Function
Function to load the attribute names from the table header so that the attributes (cells in a row), can have a reasonable name. For list items, returns single implicit heading, ["name"]
Function
Function to return all rows in the table as an array of items.
array
Function
The item to test for being contained by the store.
This function tests whether the item passed in is indeed an item in the store.
Function
The attribute to test for being contained by the store.
This function tests whether the item passed in is indeed a valid 'attribute' like type for the store.
Returns the index (column) that the attribute resides in the row.
int
Function
See dojo.data.api.Read.getValue()
Object || int || Boolean
Function
See dojo.data.api.Read.getValues()
return Value for lists|Array
Function
See dojo.data.api.Read.getAttributes()
Array
Function
See dojo.data.api.Read.hasAttribute()
Function
See dojo.data.api.Read.containsValue()
boolean.
Function
The data item to examine for attribute values.
The attribute to inspect.
The value to match.
Optional regular expression generated off value if value was of string type to handle wildcarding. If present and attribute values are string, then it can be used for comparison instead of 'value'
Internal function for looking at the values contained by the item.
Internal function for looking at the values contained by the item. This function allows for denoting if the comparison should be case sensitive for strings or not (for handling filtering cases where string case should not matter)
Boolean
Function
See dojo.data.api.Read.isItem()
Function
See dojo.data.api.Read.isItemLoaded()
Function
See dojo.data.api.Read.loadItem()
Function
request object
function to call for fetched items
function to call on error
Fetch items (XML elements) that match to a query
If '_fetchUrl' is specified, it is used to load an XML document with a query string. Otherwise and if 'url' is specified, the XML document is loaded and list XML elements that match to a query (set of element names and their text attribute values that the items to contain). A wildcard, "*" can be used to query values to match all occurrences. If '_rootItem' is specified, it is used to fetch items.
object|null
Function
Internal function for processing the passed in request and locating the requested items.
Function
See dojo.data.api.Read.getFeatures()
Function
See dojo.data.api.Read.close() nothing to do here!
Function
See dojo.data.api.Read.getLabel()
Function
See dojo.data.api.Read.getLabelAttributes()
Function
See dojo.data.api.Identity.getIdentity()
Function
See dojo.data.api.Identity.getIdentityAttributes() Identity isn't taken from a public attribute.
Function
See dojo.data.api.Identity.fetchItemByIdentity()
object|null
Object
Object