@sussudio/platform
Version:
Internal APIs for VS Code's service injection the base services.
33 lines (31 loc) • 1.11 kB
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Disposable } from '@sussudio/base/common/lifecycle.mjs';
import { IOpenerService } from '../common/opener.mjs';
import '../../../css!./link.mjs';
export interface ILinkDescriptor {
readonly label: string | HTMLElement;
readonly href: string;
readonly title?: string;
readonly tabIndex?: number;
}
export interface ILinkOptions {
readonly opener?: (href: string) => void;
readonly textLinkForeground?: string;
}
export declare class Link extends Disposable {
private _link;
private el;
private _enabled;
get enabled(): boolean;
set enabled(enabled: boolean);
set link(link: ILinkDescriptor);
constructor(
container: HTMLElement,
_link: ILinkDescriptor,
options: ILinkOptions | undefined,
openerService: IOpenerService,
);
}