Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.platform.ui.select2.widgettype.contrib--widgets

This contribution is part of XML component org.nuxeo.ecm.platform.ui.select2.widgettype.contrib inside nuxeo-platform-ui-select2-9.10.jar /OSGI-INF/widgettypes-contrib.xml

Extension Point

Extension point widgets of component LayoutStore.

Contributed Items

  • <widget name="select2_idProperty" type="text">
          <categories>
            <category>widgetTypeConf</category>
          </categories>
          <labels>
            <label mode="any">Id Property</label>
          </labels>
          <helpLabels>
            <label mode="any">
              Name of the Document property that should be
              used to
              define the ID of entry.
              If unset Document.uid will be
              used, otherwise
              Document.properties['idProperty'].
            </label>
          </helpLabels>
          <fields>
            <field>idProperty</field>
          </fields>
        </widget>
  • <widget name="select2_idFunction" type="text">
          <categories>
            <category>widgetTypeConf</category>
          </categories>
          <labels>
            <label mode="any">Id Function</label>
          </labels>
          <helpLabels>
            <label mode="any">
              Name of the JavaScript function that will be called by
              select2 to get the id from
              the suggested objects. The target function should
              take as input the
              javascript object as returned by Automation and should
              return the id to be
              submitted. Use the "Inline Javascript" property field
              to define your own
              function.
            </label>
          </helpLabels>
          <fields>
            <field>idFunction</field>
          </fields>
        </widget>
  • <widget name="select2_labelProperty" type="text">
          <categories>
            <category>widgetTypeConf</category>
          </categories>
          <labels>
            <label mode="any">Label Property</label>
          </labels>
          <helpLabels>
            <label mode="any">
              Name of the Document property that should be
              used to
              define the Label of entry.
              If unset Document.title
              will be used,
              otherwise
              Document.properties['labelProperty'].
            </label>
          </helpLabels>
          <fields>
            <field>labelProperty</field>
          </fields>
        </widget>
  • <widget name="select2_operationId" type="text">
          <categories>
            <category>widgetTypeConf</category>
          </categories>
          <labels>
            <label mode="any">Operation Id</label>
          </labels>
          <helpLabels>
            <label mode="any">
              ID of the Automation Operation that will be
              used to
              fetch the suggestions.
              If unset,
              Repository.PageProvider (or Document.PageProvider for Nuxeo Platform 6.0) will be used.
            </label>
          </helpLabels>
          <fields>
            <field>operationId</field>
          </fields>
        </widget>
  • <widget name="select2_initOperationId" type="text">
          <categories>
            <category>widgetTypeConf</category>
          </categories>
          <labels>
            <label mode="any">Init Operation Id</label>
          </labels>
          <helpLabels>
            <label mode="any">
              ID of the Automation Operation that will be
              used to
              fetch the initial Document from the stored value..
              If unsed, simple uid
              resolution will be used.
            </label>
          </helpLabels>
          <fields>
            <field>initOperationId</field>
          </fields>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.LayoutStore">

    <widget name="select2_idProperty" type="text">
      <categories>
        <category>widgetTypeConf</category>
      </categories>
      <labels>
        <label mode="any">Id Property</label>
      </labels>
      <helpLabels>
        <label mode="any">
          Name of the Document property that should be
          used to
          define the ID of entry.
          If unset Document.uid will be
          used, otherwise
          Document.properties['idProperty'].
        </label>
      </helpLabels>
      <fields>
        <field>idProperty</field>
      </fields>
    </widget>

    <widget name="select2_idFunction" type="text">
      <categories>
        <category>widgetTypeConf</category>
      </categories>
      <labels>
        <label mode="any">Id Function</label>
      </labels>
      <helpLabels>
        <label mode="any">
          Name of the JavaScript function that will be called by
          select2 to get the id from
          the suggested objects. The target function should
          take as input the
          javascript object as returned by Automation and should
          return the id to be
          submitted. Use the "Inline Javascript" property field
          to define your own
          function.
        </label>
      </helpLabels>
      <fields>
        <field>idFunction</field>
      </fields>
    </widget>

    <widget name="select2_labelProperty" type="text">
      <categories>
        <category>widgetTypeConf</category>
      </categories>
      <labels>
        <label mode="any">Label Property</label>
      </labels>
      <helpLabels>
        <label mode="any">
          Name of the Document property that should be
          used to
          define the Label of entry.
          If unset Document.title
          will be used,
          otherwise
          Document.properties['labelProperty'].
        </label>
      </helpLabels>
      <fields>
        <field>labelProperty</field>
      </fields>
    </widget>


    <widget name="select2_operationId" type="text">
      <categories>
        <category>widgetTypeConf</category>
      </categories>
      <labels>
        <label mode="any">Operation Id</label>
      </labels>
      <helpLabels>
        <label mode="any">
          ID of the Automation Operation that will be
          used to
          fetch the suggestions.
          If unset,
          Repository.PageProvider (or Document.PageProvider for Nuxeo Platform 6.0) will be used.
        </label>
      </helpLabels>
      <fields>
        <field>operationId</field>
      </fields>
    </widget>

    <widget name="select2_initOperationId" type="text">
      <categories>
        <category>widgetTypeConf</category>
      </categories>
      <labels>
        <label mode="any">Init Operation Id</label>
      </labels>
      <helpLabels>
        <label mode="any">
          ID of the Automation Operation that will be
          used to
          fetch the initial Document from the stored value..
          If unsed, simple uid
          resolution will be used.
        </label>
      </helpLabels>
      <fields>
        <field>initOperationId</field>
      </fields>
    </widget>

  </extension>