Expand description
The API for the @finos/perspective-viewer JavaScript library.
Modules§
componentscontains all YewComponenttypes, but only exports the 4 necessary for public Custom Elements. The rest are internal components of these 4.- A collection of (de-)serializable structs which capture the application state, suitable for persistence, history, etc. features.
- A catch all for project-wide macros and general-purpose functions that are not directly related to Perspective.
Macros§
- A macro for implementing the
wasm_bindgenboilerplate for types which implementserde::{Serialize, Deserialize}. - A macro which set a property called
weak_linkon the containerPropertieswhencfg(test), such that unit tests may send messages to a component. - A macro which derives a
yew::Componentfor an arbitrary HTML snippet and mounts it, for testing.
Functions§
- Register Web Components with the global registry, given a Perspective module.
- Register this crate’s Custom Elements in the browser’s current session.
- Register a plugin globally.