UNPKG

@docsvision/webclient

Version:

Type definitions for DocsVision WebClient scripts and extensions.

36 lines (35 loc) 1.51 kB
import { $Router } from '@docsvision/webclient/System/$Router'; import React from "react"; /** @internal */ export interface INavigationLinkProps { /** * Значение атрибута href для html-элемента `<a>`. * Для указания страницы Web-клиента используйте путь, начинающийся с `#`. Например, `#/Dashboard`. */ href: string; /** Значение атрибута hreflang для html-элемента `<a>` */ hrefLang?: string; /** Значение атрибута target для html-элемента `<a>` */ target?: string; /** Значение атрибута accesskey для html-элемента `<a>` */ accessKey?: string; /** Значение атрибута download для html-элемента `<a>` */ download?: boolean; /** Значение атрибута type для html-элемента `<a>` */ type?: string; tabIndex?: number; children?: any; onClick?: (ev: MouseEvent) => void; disabled?: boolean; className?: string; services: $Router; } /** @internal */ export declare class NavigationLink extends React.Component<INavigationLinkProps, any> { lastRouteTimestamp: string; static CHANGE_ROUTE_MAX_TIMEOUT: number; constructor(props: INavigationLinkProps); onNavigationLinkClick: (ev: MouseEvent, force: boolean) => void; attachRoot: (elem: HTMLElement) => void; render(): JSX.Element; }