jsbeans

jsbeans  1.0.0

jsbeans > jsbeans > jsbeans.Layout
Search:
 
Filters

static Class jsbeans.Layout

jsbeans.Layout is a small CSS Framework.
It's a JavaScript-only way to render layouts in various format, from 1 fixed column layout to 3 liquid columns plus header, footer, and so on.

Properties

templates - JSON

A JSON representing current provided templates for rendering Layouts.
Developer may add any templates matching his needs using internal template engine sintax

templates.SINGLE_COLUMN - final String

A vertical-blocks-style layout.
Blocks are:
  1. header
  2. menu
  3. content
  4. footer

templates.THREE_COLUMNS - final String

A 3-columns layout.
Blocks are:
  1. header
  2. columnleft
  3. columnright
  4. content
  5. footer

templates.TWO_COLUMNS - final String

A classic layout with a menu on the left.
Blocks are:
  1. header
  2. menu
  3. content
  4. footer

Methods

dispose

static void dispose ( opts )
The main method. Nothing will happen until {@method} dispose invocation.
Parameters:
opts <JSON> everything needed:
template: String, // the desired layout. May be a string or one of provided templates. Required
blocks: JSON, // a list of blocks for current template. Each block is a JSON and eventually may have a list in JSON form of key/value pairs for styles. Required
matches: JSON, // a list of key/value pairs in JSON format. Key is the name of a block and its value is the id of DOM Object used for that block. Using matches developer is not forced to change DOM's ids. Optional
Returns: void


Copyright © 2016 Francesco Mele. All rights reserved.