ui-router-devtools / define / UIRouterDevtools
Interface: UIRouterDevtools
Defined in: ui-router-devtools/src/ui-router-devtools.ts:10
<ui-router-devtools>: a pill that opens a panel of the router's states, transitions and config.
Extends
LitElement
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
history | public | number | How many transitions the log keeps; the attribute is history. | ui-router-devtools/src/ui-router-devtools.ts:14 |
recorder | readonly | Recorder | undefined | The recorder behind the panel, for reporters that should share it. | ui-router-devtools/src/ui-router-devtools.ts:20 |
redaction | public | Redaction | What Export scrubs unless the panel's toggles say otherwise: param keys without their values and messages kept by default. | ui-router-devtools/src/ui-router-devtools.ts:18 |
router | public | | UIRouter | undefined | The router to record. | ui-router-devtools/src/ui-router-devtools.ts:12 |
spans | public | readonly SpanRecord[] | Spans from a tracer, which the Timeline joins to transitions; setting it replaces them all. It holds the latest 2000. | ui-router-devtools/src/ui-router-devtools.ts:26 |
timeResolves | public | boolean | Time resolves by wrapping their resolveFn; read when the router attaches. The attribute is time-resolves. | ui-router-devtools/src/ui-router-devtools.ts:16 |
viewLocator | public | ViewLocator | undefined | Finds a view's element on the page for the Views, such as litViewLocator from ui-router-devtools/lit-ui-router; without one the Views draw the router's data only. | ui-router-devtools/src/ui-router-devtools.ts:30 |
Methods
addSpan()
ts
addSpan(span): void;Defined in: ui-router-devtools/src/ui-router-devtools.ts:28
Adds a span, or replaces the one with its spanId: a span can be sent when it starts, without endTime, and again when it ends.
Parameters
| Parameter | Type |
|---|---|
span | SpanRecord |
Returns
void
importSession()
ts
importSession(session): void;Defined in: ui-router-devtools/src/ui-router-devtools.ts:24
Shows session instead of the live router until the panel's Live button is pressed.
Parameters
| Parameter | Type |
|---|---|
session | Session |
Returns
void
session()
ts
session(redaction?): Session | undefined;Defined in: ui-router-devtools/src/ui-router-devtools.ts:22
The session the panel shows, live or imported, scrubbed by redaction, which defaults to the element's.
Parameters
| Parameter | Type |
|---|---|
redaction? | Partial<Redaction> |
Returns
Session | undefined