@iobroker/adapter-react-v5
Version:
React components to develop ioBroker interfaces with react.
22 lines (21 loc) • 692 B
TypeScript
import { Component } from 'react';
export declare class Router<P = {}, S = {}> extends Component<P, S> {
protected onHashChangedBound: () => void;
constructor(props: P);
componentDidMount(): void;
componentWillUnmount(): void;
onHashChanged(): void;
/**
* Gets the location object.
*/
static getLocation(): {
tab: string;
dialog: string;
id: string;
arg: string;
};
/**
* Navigate to a new location. Any parameters that are not set will be taken from the current location.
*/
static doNavigate(tab: string | undefined | null, dialog?: string | null, id?: string | null, arg?: string | null): void;
}