Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Utils fix

...

Utilities are provided in theĀ utils the Utils global space. They are present in the context of the widget JavaScript file, but not in the template context by default (that can easily be remedied by returning it as part of getCustomTemplateParams though).

...

A utility for handling query string parameters.

parse()

utilsUtils.queryParam.parse(/* no arguments */)

...

Expand
titleExample
Code Block
languagejs
var params = utilsUtils.queryParam.parse();
// returns a hash of parameters, example:
// {"q": "Apple"}
console.log(params.q);

...