carbon-components-angular
Version:
Next generation components
76 lines (72 loc) • 2.61 kB
TypeScript
/**
*
* carbon-angular v0.0.0 | expandable-tile.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 { ElementRef, AfterViewInit } from "@angular/core";
import { I18n } from "carbon-components-angular/i18n";
import * as i0 from "@angular/core";
export interface ExpandableTileTranslations {
EXPAND: string;
COLLAPSE: string;
}
/**
* Get started with importing the module:
*
* ```typescript
* import { TilesModule } from 'carbon-components-angular';
* ```
*
* [See demo](../../?path=/story/components-tiles-expandable--basic)
*/
export declare class ExpandableTile implements AfterViewInit {
protected i18n: I18n;
protected element: ElementRef;
/**
* @deprecated since v5 - Use `cdsLayer` directive instead
* Set to `"light"` to apply the light style
*/
theme: "light" | "dark";
/**
* Controls the expanded state
*/
expanded: boolean;
/**
* Controls the interactive state
*/
interactive: boolean;
/**
* Expects an object that contains some or all of:
* ```
* {
* "EXPAND": "Expand",
* "COLLAPSE": "Collapse",
* }
* ```
*/
set translations(value: ExpandableTileTranslations);
tileContainer: ElementRef;
tileMaxHeight: number;
currentExpandedHeight: number;
expand: import("carbon-components-angular/i18n").Overridable;
collapse: import("carbon-components-angular/i18n").Overridable;
constructor(i18n: I18n, element: ElementRef);
ngAfterViewInit(): void;
get expandedHeight(): number;
updateMaxHeight(): void;
onClick(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandableTile, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ExpandableTile, "cds-expandable-tile, ibm-expandable-tile", never, { "theme": "theme"; "expanded": "expanded"; "interactive": "interactive"; "translations": "translations"; }, {}, never, ["[cdsAboveFold],[ibmAboveFold],.cds--tile-content__above-the-fold", "[cdsBelowFold],[ibmBelowFold],.cds--tile-content__below-the-fold"], false>;
}