UNPKG

@iobroker/adapter-react

Version:

React classes to develop admin interfaces for ioBroker with react.

36 lines (35 loc) 1.16 kB
export default Router; /** * @template P Type of the properties object. * @template S Type of the internal state object. * @extends {React.Component<P, S>} */ declare class Router<P, S> extends React.Component<P, S, any> { /** * Gets the location object. * @returns {{ tab: string; dialog: string; id: string; arg: string; }} */ 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. * @param {string | undefined} [tab] * @param {string | undefined} [dialog] * @param {string | undefined} [id] * @param {string | undefined} [arg] */ static doNavigate(tab?: string | undefined, dialog?: string | undefined, id?: string | undefined, arg?: string | undefined): void; /** * @param {P} props The React properties of this component. */ constructor(props: P); onHashChangedBound: any; componentDidMount(): void; componentWillUnmount(): void; onHashChanged(): void; } import React from "react";