Module: alfresco/layout/VerticalReveal

alfresco/layout/VerticalReveal

This layout widget allows for the dynamic revealing and hiding of content.
Author:
  • Dave Draper
  • Martin Doyle
License:
Source:

Example

Sample configuration

{
  name: "alfresco/layout/VerticalReveal",
  config: {
    initiallyRevealed: true, // Optionally reveal immediately
    subscriptionTopic: "ALF_REVEAL_LOGO",
    widgets: [{
      name: "alfresco/logo/Logo"
    }]
  }
}

Members

_widgetsProcessed :boolean

Will be set to true once the widgets have been processed
Type:
  • boolean
Source:

cssRequirements :object[]

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

initiallyRevealed :boolean

Indicates whether or not the contained widgets should be initially revealed or not. Defaults to false.
Type:
  • boolean
Default Value:
  • false
Source:

rootClass :string

The root class for this widget
Type:
  • string
Source:

subscriptionTopic :string

The topic to publish in order to reveal or hide the child widgets
Type:
  • string
Default Value:
  • "ALF_VERTICAL_REVEAL"
Source:

templateString :string

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

toggleLabel :string

The label for the manual toggle
Type:
  • string
Default Value:
  • null
Source:

Methods

_doToggle()

Toggle the content node.
Source:

_onToggleDisplay()

Handle requests to toggle the contents visibility
Source:

allWidgetsProcessed(widgets)

Called when the child widgets have been processed
Parameters:
Name Type Description
widgets Array An array of all the widgets that have been processed
Source:

postCreate()

Widget has been created, but not sub-widgets
Source:

postMixInProperties()

Properties have been mixed into this widget instance.
Source: