Manta Developers
GitHub
Menu

@manta-eu/horns-client/mount

Reference for @manta-eu/horns-client/mount in @manta-eu/horns-client 0.2.3.

Type Aliases

MountHornsOptions

MountHornsOptions = object

Properties

container?

optional container?: HTMLElement

Defaults to #app, which is what this package’s own document declares.

shapes

shapes: ShapeCatalogSource

The realm’s shapes. Horns ships none: they describe a deployment’s data model, not the library’s.

Functions

mountHorns()

mountHorns(__namedParameters): void

Mount Horns as a whole page. A host with a router of its own splices hornsRoutes() in instead.

The base URL is this deployment’s origin, never agents’: the browser holds this worker’s session cookies and none of agents’, so every SDK call has to land here to be proxied with them.

Parameters

__namedParameters

MountHornsOptions

Returns

void