UNPKG

carbon-components-angular

Version:
60 lines (56 loc) 2.21 kB
/** * * carbon-angular v0.0.0 | table-radio.component.d.ts * * Copyright 2014, 2025 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 { I18n } from "carbon-components-angular/i18n"; import { TableItem } from "../table-item.class"; import { Observable } from "rxjs"; import * as i0 from "@angular/core"; export declare class TableRadio { protected i18n: I18n; row: any[]; selected: boolean; set label(value: string | Observable<string>); get label(): string | Observable<string>; get disabled(): boolean; radioColumn: boolean; selectableColumn: boolean; /** * Used to populate the row selection checkbox label with a useful value if set. * * Example: * ``` * <cds-table [selectionLabelColumn]="0"></cds-table> * <!-- results in aria-label="Select first column value" * (where "first column value" is the value of the first column in the row --> * ``` */ selectionLabelColumn: number; skeleton: boolean; /** * Emits if a single row is selected. */ change: EventEmitter<any>; protected _label: import("carbon-components-angular/i18n").Overridable; constructor(i18n: I18n); getSelectionLabelValue(row: TableItem[]): { value: any; }; getLabel(): Observable<string>; static ɵfac: i0.ɵɵFactoryDeclaration<TableRadio, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TableRadio, "[cdsTableRadio], [ibmTableRadio]", never, { "row": "row"; "selected": "selected"; "label": "label"; "selectionLabelColumn": "selectionLabelColumn"; "skeleton": "skeleton"; }, { "change": "change"; }, never, never, false>; }