Module: alfresco/layouts/LeftAndRight

alfresco/layouts/LeftAndRight

This layout widget allows widget models to be aligned to either the left or the right. Up until Aikau 1.0.36 this was achieved by including an "align" attribute in each widget configured to be either "left" or "right". However, since Aikau 1.0.36 the widgetsRight and [widgetsLeft]{@link module:alfresco/layout/LeftAndRight#widgetsLeft} configuration attributes should be used instead.
Author:
  • Dave Draper
  • Richard Smith
License:
Source:

Example

This is an example configuration:

{
  name: "alfresco/layout/LeftAndRight",
  config: {
    widgetsLeft: [
       {
          name: "alfresco/logo/Logo",
          config: {
             logoClasses: "surf-logo-small"
          }
       }
    ],
    widgetsRight: [
       {
          name: "alfresco/logo/Logo",
          config: {
             logoClasses: "alfresco-logo-only"
          }
       }
    ]
  }
}

Members

cssRequirements :object[]

An array of the CSS files to use with this widget.
Type:
  • object[]
Default Value:
  • [{cssFile:"./css/LeftAndRight.css"}]
Source:

templateString :string

The HTML template to use for the widget.
Type:
  • string
Source:

widgetsLeft :object[]

The widgets model to align to the left.
Type:
  • object[]
Since:
  • 1.0.36
Default Value:
  • null
Source:

widgetsRight :object[]

The widgets model to align to the right.
Type:
  • object[]
Since:
  • 1.0.36
Default Value:
  • null
Source:

Methods

postCreate()

Iterates through the array of widgets to be created and creates the appropriate DOM node based on the "align" attribute of the widget configuration.
Source: