Skip to main content

Bridge.Sub

.show(key)​

Navigates to a subslide of the current slide with the given key. prev or next can be used in place of a key.

// Key example
Bridge.Sub.show("subslide-2");
// prev / next example
Bridge.Sub.show("next");
note

When developing for Remote Preso, Bridge.Sub.show(key) should be triggered on the master only - the change of subslide on the client will be handled by the application / telepresenter code automatically.

.currentSubslide​

Returns the current subslide object.

const current = Bridge.Sub.currentSubslide;

.subslides​

Returns an object containing all registered subslides for the current slide, keyed by their ID (e.g., subslide-1).

const all = Bridge.Sub.subslides;

.length​

Returns the number of subslides available on the current slide.

const count = Bridge.Sub.length;

.keys()​

Returns an array of the keys for all subslides on the current slide.

const keys = Bridge.Sub.keys(); // ["subslide-1", "subslide-2"]

.nextSubslide​

Returns the next subslide object in the sequence, or null if the current subslide is the last one.

const next = Bridge.Sub.nextSubslide;

.get(key)​

Returns a specific subslide object by its key.

const subslide = Bridge.Sub.get("subslide-2");