Skip to main content
Skip table of contents

panel.element

Description

Creates HTML elements for a 'generic' panel styled for XNAT.

Spawner Widget Name

CODE
kind: panel.element

JavaScript Method

CODE
XNAT.ui.panel.element()

Configuration Options

CODE
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

NameValueDescription
kindpanel.elementSpawner 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.
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.