4.4.2 • Published 3 years ago

ug-layout v4.4.2

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

UgLayout

Ugh Free Layout Management.

UgLayout is a perfomant, highly extensible framework for making configureable layouts with components.

Concepts

ugLayout is a tree of Renderable objects. A row is a renderable object and so are all items belonging to that row. ugLayout comes with the built in Renderables:

  • Stack (Tabbable container)
  • Row
  • Column
  • Layout (A scoped container)
  • View (Creates components)

Install

npm install --save ug-layout

Basic Useage

import { RootLayout, Layout, View } from 'ug-layout';

// My component to use.
class MyComponent {
  ugOnInit(container) {
    container.mountHTML('<div>Hello World!!</div>');
  }
}

// The configuration for the layout (tree of Renderables)
const configuration = RootLayout.configure({
  child: Layout.configure({
    child: View.configure({ useClass: MyComponent })
  })
});

// Creates the root alyout instance.
const layout = RootLayout.create({
  container: document.body
});

// Load the configuration
layout.load(configuration);

The example above will render the layout into the container element. This example is the most BASIC example. Please resort to the manual for more complex scenarios.

4.4.2

3 years ago

4.4.1

5 years ago

4.4.0

5 years ago

4.3.1

5 years ago

4.1.1

5 years ago

4.3.0

5 years ago

4.2.6

5 years ago

4.2.5

5 years ago

4.2.4

5 years ago

4.2.3

6 years ago

4.2.2

6 years ago

4.2.1

6 years ago

4.2.0

6 years ago

4.1.0

6 years ago

3.3.1

6 years ago

3.3.0

6 years ago

4.0.2

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.2.8

7 years ago

3.2.7

7 years ago

3.2.6

7 years ago

3.2.5

7 years ago

3.2.4

7 years ago

3.2.3

7 years ago

3.2.2

7 years ago

3.2.1

7 years ago

3.2.0

7 years ago

3.1.3

7 years ago

3.1.2

7 years ago

3.1.1

7 years ago

3.1.0

7 years ago

3.0.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago