dojox/app/utils/hash (version 1.10)

Summary

This module contains the hash

Method Summary

  • addViewParams(hash,view,params) add the view specific params to the hash for example (view1&param1=value1)
  • buildWithParams(hash,params) build up the url hash adding the params
  • getParamObj(params,viewPart) called to handle a view specific params object
  • getParams(hash) get the params from the hash
  • getParamString(params) return the param string
  • getTarget(hash,defaultView) return the target string

Methods

addViewParams(hash,view,params)

add the view specific params to the hash for example (view1&param1=value1)

Parameter Type Description
hash String

the url hash

view String

the view name

params Object

the params for this view

Returns:any | undefined

the hash string

buildWithParams(hash,params)

build up the url hash adding the params

Parameter Type Description
hash String

the url hash

params Object

the params object

Returns:any | string

the params object

getParamObj(params,viewPart)

called to handle a view specific params object

Parameter Type Description
params Object

the view specific params object

viewPart String

the part of the view with the params for the view

Returns:any | Object

the params object for the view

getParams(hash)

get the params from the hash

Parameter Type Description
hash String

the url hash

Returns:any | object

the params object

getParamString(params)

return the param string

Parameter Type Description
params Object

the params object

Returns:any | string

the params string

getTarget(hash,defaultView)

return the target string

Parameter Type Description
hash String

the hash string

defaultView String
Optional

the optional defaultView string

Returns:any | undefined

the target string

Error in the documentation? Can’t find what you are looking for? Let us know!