API Docs for:
Show:

Browser Class

Extends juju.SubApp
Module: subapps
Parent Module: juju

Browser Sub App for the Juju Gui.

Methods

_detailsVisible

(
  • visible
)

Show or hide the details panel.

Parameters:

  • visible Boolean

    set the panel to hide or show.

_getSubPath

(
  • path
)

Some routes might have sub parts that hint to where a user wants focus. In particular we've got the tabs that might have focus. They are the last optional component of some of the routes.

Parameters:

  • path String

    the full path to search for the sub path.

_getViewCfg

(
  • cfg
)

Generate a standard shared set of cfg all Views can expect to see.

Parameters:

  • cfg Object

    additional config to merge into the default view config.

destructor

()

Cleanup after ourselves on destroy.

fullscreen

(
  • req
  • res
  • next
)

Render the fullscreen view to the client.

Parameters:

  • req Request

    current request object.

  • res Response

    current response object.

  • next Function

    callable for the next route in the chain.

initializer

(
  • cfg
)

General app initializer

Parameters:

  • cfg Object

    general init config object.

renderEditorial

(
  • req
  • res
  • next
)

Render editorial content into the parent view when required.

The parent view is either fullscreen/sidebar which determines how the editorial content is to be rendered.

Parameters:

  • req Request

    current request object.

  • res Response

    current response object.

  • next Function

    callable for the next route in the chain.

sidebar

(
  • req
  • res
  • next
)

Handle the route for the sidebar view.

Parameters:

  • req Request

    current request object.

  • res Response

    current response object.

  • next Function

    callable for the next route in the chain.

sidebarCharm

(
  • req
  • res
  • next
)

Render the sidebar view of a specific charm to the client.

Parameters:

  • req Request

    current request object.

  • res Response

    current response object.

  • next Function

    callable for the next route in the chain.

Attributes

container

String

Default: '#subapp-browser'

routes

Array

Default: Array of subapp routes.

store

Charmworld0

Default: Charmworld0

urlNamespace

String

Default: 'charmstore'

views

The available Views run from this sub app.