Layout

Layout provides a DOM-based layout system integrated with riot.js.

Example

import { Layout } from 'dripcap';

Layout.require(__dirname + '/../tag/binary-view.tag');

let layout = {
  center: { tag: 'binary-view' },
  name: 'Binary',
  id: 'binary-view'
};

Layout.container('drip-tab-bottom').append(layout);

Class Methods

Layout.container(id)

  • id String - Container ID
  • Returns Object

Finds the registered container by id.

Layout.registerContainer(id,view)

  • id String - Container ID
  • view Object
    • name String - Tab name
    • id String - Container ID
    • center Object
      • tag String - Riot.js tagname
      • id String - Container ID
    • top Object
      • tag String - Riot.js tagname
      • id String - Container ID
    • bottom Object
      • tag String - Riot.js tagname
      • id String - Container ID
    • left Object
      • tag String - Riot.js tagname
      • id String - Container ID
    • right Object
      • tag String - Riot.js tagname
      • id String - Container ID

Layout.unregisterContainer(id)

  • id String

Layout.require(tagfile)

  • tagfile String - Path to a Riot.js tag file

Layout.unregister(tagName)

  • tagName String - Riot.js tagname

Layout.registerPreferenceTab(view)

  • view Object - Same as Layout.registerContainer

Layout.unregisterPreferenceTab(id)

  • id String

results matching ""

    No results matching ""