Skip to content
jigish edited this page Jan 25, 2013 · 20 revisions

Layouts are used to describe a set of operations that run together that you can reference in the layout operation and the slate.default function. This page describes them in detail.

Usage

Layouts are created using the slate.layout function

var name = slate.layout(name, {
  app : params,
  app : params,
  ...
});

Layouts are used in the slate.default function

slate.default(screenConfig, layoutName);

This will cause the layout with the name layoutName to be activated when Slate sees the screen configuration described by screenConfig.

Layouts can also be used in the slate.operation function along with the layout operation

var layoutOperation = slate.operation("layout", layoutName);

This will create an operation that activates the layout with the name layoutName.

Description

Clone this wiki locally