panel.element
Description
Creates HTML elements for a 'generic' panel styled for XNAT.
Spawner Widget Name
kind: panel.element
JavaScript Method
XNAT.ui.panel.element()
Configuration Options
fooElement:
kind: panel.element
[label]: Element Label
[id]: foo-input
contents:
[HTML string or Spawner config objects]
[before]: "Text or HTML to insert before the panel"
[after]:
smallTxt:
tag: small.msg
Properties
Name | Value | Description |
---|---|---|
kind | panel.element | Spawner widget type - creates HTML elements for rendering a generic panel element with a label and content. |
label | (string/false) | Label element for input. Use boolean 'false' to disable label display. |
id | (string) | Value for spawned element's id attribute. |
contents | (string/objects) | HTML string or Spawner config object(s) that will render in the panel's content area. |
before | (string/objects) | Same as the contents but will render before the panel element. This is useful for inserting ad-hoc content if needed. |
after | (string/objects) | Same as the contents but will render after the panel element. This is useful for inserting ad-hoc content if needed. |