Module: alfresco/forms/TabbedControls

alfresco/forms/TabbedControls

This extends the AlfTabContainer and mixes in the LayoutMixin to provide a tab container that form controls can be placed. Each tab should be added as a ControlColumn widget on which the tab title can be configured.
Author:
  • Dave Draper
License:
Source:

Example

Example of form containing tabbed controls

{
  name: "alfresco/forms/Form",
  config: {
    okButtonPublishTopic: "SAVE_FORM",
    widgets: [
      {
        name: "alfresco/forms/TabbedControls",
        config: {
          widgets: [
            {
              name: "alfresco/forms/ControlColumn",
              title: "Tab 1",
              config: {
                widgets: [
                  {
                    name: "alfresco/forms/controls/TextBox",
                    config: {
                      fieldId: "TB1",
                      name: "tb1",
                      label: "Text box in tab 1"
                    }
                  }
                ]
              }
            },
            {
              name: "alfresco/forms/ControlColumn",
              title: "Tab 2",
              config: {
                widgets: [
                  {
                    name: "alfresco/forms/controls/TextBox",
                    config: {
                      fieldId: "TB2",
                      name: "tb2",
                      label: "Text box in tab 2"
                    }
                  }
                ]
              }
            }
          ]
        }
      }
    ]
  }
}

Extends

  • module:alfresco/layout/AlfTabContainer,

Members

delayProcessingDefault :boolean

Overrides the default delayed processing setting so that all form fields will be created immediately so that their validity can be processed.
Type:
  • boolean
Default Value:
  • false
Source:

Methods

getFormLayoutChildren() → {object[]}

Overrides the mixed in function to get the current array of form controls.
Source:
Returns:
An array of the form controls to iterate over.
Type
object[]