UNPKG

carbon-components-angular

Version:
91 lines (87 loc) 3.12 kB
/** * * carbon-angular v0.0.0 | table-toolbar.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 { TableModel } from "../table-model.class"; import { EventEmitter } from "@angular/core"; import { I18n, Overridable } from "carbon-components-angular/i18n"; import { TableRowSize } from "../table.types"; import * as i0 from "@angular/core"; /** * The table toolbar is reserved for global table actions such as table settings, complex filter, export, or editing table data. * * ## Basic usage * * ```html * <cds-table-toolbar [model]="model"> * <cds-table-toolbar-actions> * <button cdsButton="primary"> * Delete * <svg cdsIcon="trash-can" size="16" class="cds--btn__icon"></svg> * </button> * <button cdsButton="primary"> * Save * <svg cdsIcon="save" size="16" class="cds--btn__icon"></svg> * </button> * <button cdsButton="primary"> * Download * <svg cdsIcon="download" size="16" class="cds--btn__icon"></svg> * </button> * </cds-table-toolbar-actions> * <cds-table-toolbar-content> * <cds-table-toolbar-search [expandable]="true"></cds-table-toolbar-search> * <button cdsButton="toolbar-action"> * <svg cdsIcon="settings" size="16" class="cds--toolbar-action__icon"></svg> * </button> * <button cdsButton="primary" size="sm"> * Primary Button * <svg cdsIcon="add" size="20" class="cds--btn__icon"></svg> * </button> * </cds-table-toolbar-content> * </cds-table-toolbar> * ``` * */ export declare class TableToolbar { protected i18n: I18n; model: TableModel; set batchText(value: string | { SINGLE: string; MULTIPLE: string; }); set ariaLabel(value: { ACTION_BAR: string; }); set cancelText(value: { CANCEL: string; }); size: TableRowSize; get cancelText(): { CANCEL: string; }; cancel: EventEmitter<any>; actionBarLabel: Overridable; _cancelText: Overridable; _batchTextLegacy: Overridable; _batchTextSingle: Overridable; _batchTextMultiple: Overridable; constructor(i18n: I18n); get count(): number; get selected(): boolean; onCancel(): void; static ɵfac: i0.ɵɵFactoryDeclaration<TableToolbar, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TableToolbar, "cds-table-toolbar, ibm-table-toolbar", never, { "model": "model"; "batchText": "batchText"; "ariaLabel": "ariaLabel"; "cancelText": "cancelText"; "size": "size"; }, { "cancel": "cancel"; }, never, ["cds-table-toolbar-actions,ibm-table-toolbar-actions", "*"], false>; }