dojox/dtl/Context (version 1.10)

Summary

Represents a runtime context used by DTL templates.

Usage

Context(dict);
Parameter Type Description
dict Object

See the dojox/dtl/Context reference documentation for more information.

Method Summary

  • _normalize(value)
  • extend(obj) Returns a clone of this context object, with the items from the passed objecct mixed in.
  • filter(filter) Returns a clone of this context, only containing the items defined in the filter.
  • get(key,otherwise)
  • getKeys() Returns the set of keys exported by this context.
  • getThis() Gets the object on which to perform operations.
  • hasKey(key) Indicates whether the specified key is defined on this context.
  • pop()
  • push()
  • setThis(scope) Sets the object on which to perform operations.
  • update(dict)

Methods

_normalize(value)
Defined by dojox/dtl/_base
Parameter Type Description
value undefined
Returns:undefined
extend(obj)
Defined by dojox/dtl/Context

Returns a clone of this context object, with the items from the passed objecct mixed in.

Parameter Type Description
obj dojox/dtl/Context | Object

The object to extend.

Returns:undefined
filter(filter)
Defined by dojox/dtl/Context

Returns a clone of this context, only containing the items defined in the filter.

Parameter Type Description
filter dojox/dtl/Context | Object | String...
Returns:instance
get(key,otherwise)
Defined by dojox/dtl/_base
Parameter Type Description
key undefined
otherwise undefined
Returns:undefined
getKeys()
Defined by dojox/dtl/Context

Returns the set of keys exported by this context.

Returns:Array
getThis()
Defined by dojox/dtl/Context

Gets the object on which to perform operations.

Returns:undefined
hasKey(key)
Defined by dojox/dtl/Context

Indicates whether the specified key is defined on this context.

Parameter Type Description
key String

The key to look up.

Returns:boolean
pop()
Defined by dojox/dtl/_base
push()
Defined by dojox/dtl/_base
Returns:undefined
setThis(scope)
Defined by dojox/dtl/Context

Sets the object on which to perform operations.

Parameter Type Description
scope Object

the this ref.

update(dict)
Defined by dojox/dtl/_base
Parameter Type Description
dict undefined
Returns:undefined
Error in the documentation? Can’t find what you are looking for? Let us know!