Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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

Common Properties

Spawner element config objects contain some common properties - these are listed here:

Common Element Properties

Panel Elements

Panels

The panel elements themselves.

panel

 

panel.form

 

Panel Child Elements

Elements contained within the panels.

panel.element

panel.input.text 

panel.input.email

panel.input.number

panel.input.checkbox

panel.textarea

panel.select.single

panel.select.multi

panel.data.table

panel.data.list

panel.form

 

KindJS MethodDescriptionConfig OptionsHTML Output
panel.formXNAT.ui.panel.formCreates a <form> element styled as a panel with "Submit" and "Reset" buttons. This element is a container that other Spawner elements are spawned into.
adminInfo:
    kind: panel.form
    name: adminInfo
    label: Admin Information
    method: POST
    contentType: json
    action: /xapi/siteConfig/batch
    load: XNAT.data.siteConfig
    refresh: /xapi/siteConfig
    contents:
        ${adminEmail}


<form class="xnat-form-panel panel panel-default" id="site-info-panel" name="siteInfo" method="POST" action="/xapi/siteConfig/batch" data-panel="site-info" data-method="post">
    <div class="panel-heading"><h3 class="panel-title">Site Information</h3></div>
    <div class="panel-body">
        <!-- Contents -->
    </div>
    <div class="panel-footer">
        <button class="submit save pull-right btn btn-sm btn-primary" type="submit">Save</button>
        <button class="revert pull-right btn btn-sm btn-default" type="button">Discard Changes</button>
        <div class="clear"></div>
    </div>
</form>
     
     
  • No labels