3.2.6 • Published 4 years ago

presentation-components v3.2.6

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
4 years ago

presentation-components

Augmented.js Presentation Simple Components Module

API

Table of Contents

Article

Extends DecoratorView

An article class for setting up a 'page' Supported options are:

Parameters

  • options object Options to pass to the constructor

Examples

const article = new Presentation.Component.Article(
                { "el": "#mount", "header": "html", "footerEl": "#foot" });

header

Header property

Parameters

  • header

Properties

footer

Footer for the article

Parameters

  • footer

Properties

body

The body content of the card (supports HTML)

Parameters

  • body

Properties

sections

The section array

Parameters

  • sections

Properties

addSection

Add a section object to the article

Parameters

  • section object a section object

Examples

Section Object format:
{
  "id" "something",
  "body" "html",
  "class" "something"
}

clearSections

Clear the sections

render

render - render the article

Card

Extends DecoratorView

A card view - simple panel/dialog-like panel

Parameters

  • options

style

body property - the body of the card

Parameters

  • style

style

style property - the style

Parameters

  • style

body

The body content of the card (supports HTML)

Parameters

  • body

render

render - render the card

remove

remove

Footer

Extends DecoratorView

A Footer Component

Parameters

  • options

body

The body content of the card (supports HTML)

Parameters

  • body

render

render - render the footer

Header

Extends DecoratorView

A Header Component

Parameters

  • options

title

Parameters

  • title

Properties

subTitle

Parameters

  • subTitle

Properties

  • subTitle string A subTitle property

render

render - render the header

remove

Remove the Header

Returns object Returns the view context ('this')

Manager

Extends Mediator

A Component Manager or Mediator

Parameters

  • options

Meta

  • deprecated: Use Mediator

manageComponent

Manages a component (colleague)

Parameters

  • component View A component or view to manage

unmanageComponent

Unmanages a component (colleague)

Parameters

  • component View A component or view to manage

SelectBox

Extends DecoratorView

A SelectBox

Parameters

  • options (optional, default {})

render

Render the SelectBox

Returns object Returns the view context ('this')

remove

remove

addOption

Adds an option to the select

Parameters

  • label string label of the option
  • value string value of the option
  • selected boolean selected or not

Examples

addOption({"dog", 0, true});
3.2.6

4 years ago

3.2.5

4 years ago

3.2.4

4 years ago

3.2.3

4 years ago

3.2.2

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.8.9

5 years ago

2.8.8

5 years ago

2.8.7

5 years ago

2.8.6

5 years ago

2.8.5

5 years ago

2.8.4

5 years ago

2.8.3

5 years ago

2.8.2

5 years ago

2.8.1

5 years ago

2.7.6

5 years ago

2.7.5

5 years ago

2.7.4

5 years ago

2.7.3

5 years ago

2.7.2

6 years ago

2.7.1

6 years ago

2.7.0

6 years ago

2.6.0

6 years ago

2.5.4

6 years ago

2.5.3

6 years ago

2.5.2

6 years ago