Module: alfresco/layout/SimplePanel

alfresco/layout/SimplePanel

This layout widget provides a simple way in which content can have a constrained height and width.
Author:
  • Dave Draper
License:
Source:

Example

Example configuration:

{
  name: "alfresco/layout/SimplePanel",
    config: {
       height: "100px",
       width: "100px",
       handleOverflow: true,
       widgets: [
          {
             name: "alfresco/logo/Logo"
          }
       ]
    }
 }
 

Members

additionalStyles :object

Any additional style rules, as a map of style attributes to values
Type:
  • object
Since:
  • 1.0.46
Default Value:
  • null
Source:

cssRequirements :object[]

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

handleOverflow :boolean

Controls whether or not scroll bars will be displayed as the content of the panel grows beyond its dimensions. Defaults to true, if the widgets within the panel manage their own overflow then this should be set to false.
Type:
  • boolean
Default Value:
  • true
Source:

height :string

The height of the panel.
Type:
  • string
Default Value:
  • null
Source:

templateString :string

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

width :string

The width of the panel.
Type:
  • string
Default Value:
  • null
Source:

Methods

postCreate()

Processes the widgets into the content node.
Source: