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

Version 1 Next »

Below is a reference for pre-defined XNAT Spawner UI widgets.



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.
    kind: panel.form
    name: adminInfo
    label: Admin Information
    method: POST
    contentType: json
    action: /xapi/siteConfig/batch
    refresh: /xapi/siteConfig

<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 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>
  • No labels