Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

Standard XNAT UI widgets can be 'spawned' through the processing of YAML files with the Spawner service, or directly with JavaScript. The config objects are the same, but YAML can only contain strings (which can be parsed for 'special' strings) and JavaScript can contain additional functionality through the use of functions, objects, variable references, etc. The config objects shown on the element documentation can be used in JSON or JavaScript object format, rather than the YAML format that's shown. Using YAML files for element configuration requires parsing it into JSON for consumption by the JS widget functions - this can be done using XNAT's Spawner service, or directly in JavaScript using functions in the YAML parsing library included in the XNAT webapp.

Pre-defined Widget Configs

Below are reference pages for pre-defined XNAT Spawner UI widgets.