dojox/dtl/contrib/data (version 1.10)

Method Summary

  • _BoundItem(item,store)
  • _get(key)
  • bind_data(parser,token) Turns a list of data store items into DTL compatible items
  • bind_query(parser,token) Queries a data store and makes the returned items DTL compatible
  • BindDataNode(items,query,store,alias)

Methods

_BoundItem(item,store)
Parameter Type Description
item undefined
store undefined
_get(key)
Parameter Type Description
key undefined
Returns:undefined
bind_data(parser,token)

Turns a list of data store items into DTL compatible items

Parameter Type Description
parser undefined
token undefined
Returns:instance

Examples

Example 1

contextItems and contextStore should be an item list and a data store that get assigned to newVariable

{% bind_data contextItems to contextStore as newVariable %}
bind_query(parser,token)

Queries a data store and makes the returned items DTL compatible

Parameter Type Description
parser undefined
token undefined
Returns:instance

Examples

Example 1

You can only use this with data stores that work in a synchronous way (meaning that onComplete is fired during the fetch call). A sync flag is sent to the fetch call so that stores that usually work asynchronously make themselves syncrhonous if possible.

{% bind_query contextQuery to contextStore as newVariable %}
BindDataNode(items,query,store,alias)
Parameter Type Description
items undefined
query undefined
store undefined
alias undefined
Error in the documentation? Can’t find what you are looking for? Let us know!