Skip to content

Augmentedjs/presentation-application

Repository files navigation

presentation-application

Augmented.js Presentation Application Module

API

Table of Contents

Application

Extends CoreApplication

Presentation Application - extension of Augmented.Application</br/> Add registration of mediators to the application, breadcrumbs, and stylesheet registration The Application is a container for the 'app'. This allows control of the flow application init, routing, and starting. Applications can include API to add app-globals like datastores, and mediators. Applications contain a few built-in items:

  • A start method to kick off your application (stop as well).
  • A router property
  • mediator registration
  • stylesheets
  • breadcrumbs for tracking navigations

Parameters

  • options Object Options to pass

navigate

Navigate using the router

Parameters

  • where string Where to go
  • options Object Any options to pass

launch

Launch using the router

Parameters

  • where string Where to go
  • options Object Any options to pass

redirect

Redirect using the browser

Parameters

initialize

Initialize Event - adds any stylesheets registered

router

The router property of the application

registerMediator

Register a Mediator

Parameters

  • mediator Mediator The mediator to register

deregisterMediator

Deregister a Mediator

Parameters

  • mediator Mediator The mediator to deregister

mediators

All Mediators

Properties

  • mediators array all Mediators

registerStylesheet

Register a stylesheet

Parameters

  • s
  • stylesheet string URI of the stylesheet

deregisterStylesheet

Deregister a stylesheet

Parameters

  • s
  • stylesheet string URI of the stylesheet

attachStylesheets

Attach registered stylesheets to the DOM

replaceStylesheets

Replace stylesheets then attach registered stylesheets to the DOM

stylesheets

All Stylesheets

Properties

  • stylesheets array all stylesheets

setCurrentBreadcrumb

Sets the current breadcrumb

Parameters

  • uri string The URI of the breadcrumb
  • name string The name of the breadcrumb

getCurrentBreadcrumb

Gets the current breadcrumb

Returns object Returns the current breadcrumb

breadcrumbs

The breadcrumbs

Properties

  • breadcrumbs array alls the breadcrumbs

title

The Window title

Properties

  • title string title of the window

About

Augmented.js Presentation Application Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published