UNPKG

carbon-components-angular

Version:
68 lines (64 loc) 2.42 kB
/** * * carbon-angular v0.0.0 | switcher-list-item.component.d.ts * * Copyright 2014, 2024 IBM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { EventEmitter } from "@angular/core"; import { DomSanitizer } from "@angular/platform-browser"; import { Router } from "@angular/router"; import * as i0 from "@angular/core"; /** * Represents an item in a switcher list. */ export declare class SwitcherListItem { protected domSanitizer: DomSanitizer; protected router: Router; /** * Enables the "active" state for an item. Commonly used to indicate the current page or selection. */ active: boolean; /** * Array of commands to send to the router when the link is activated * See: https://angular.io/api/router/Router#navigate */ route: any[]; /** * Router options. Used in conjunction with `route` * See: https://angular.io/api/router/Router#navigate */ routeExtras: any; /** * Optional link for the underlying anchor. */ set href(value: string); /** * Emits the navigation status promise when the link is activated */ navigation: EventEmitter<Promise<boolean>>; get href(): string; /** * Optional target for the underlying anchor. */ set target(value: string); get target(): string; itemClass: boolean; itemRole: string; protected _href: string; protected _target: string; constructor(domSanitizer: DomSanitizer, router: Router); navigate(event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration<SwitcherListItem, [null, { optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<SwitcherListItem, "cds-switcher-list-item, ibm-switcher-list-item", never, { "active": "active"; "route": "route"; "routeExtras": "routeExtras"; "href": "href"; "target": "target"; }, { "navigation": "navigation"; }, never, ["*"], false>; }