carbon-components-angular
Version:
Next generation components
62 lines (58 loc) • 2.14 kB
TypeScript
/**
*
* carbon-angular v0.0.0 | layer.directive.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 { QueryList, AfterContentInit } from "@angular/core";
import * as i0 from "@angular/core";
/**
* Applies layering styles to the div container it is applied to. Get started with importing the module:
*
* ```typescript
* import { LayerModule } from 'carbon-components-angular';
* ```
*
* [See demo](../../?path=/story/components-layer--basic)
*/
export declare class LayerDirective implements AfterContentInit {
/**
* @deprecated as of v5 - Use `cdsLayer` input property instead
*/
set ibmLayer(level: 0 | 1 | 2 | "");
/**
* Override layer level
* Empty string has been added as an option for Angular 16+ to resolve type errors
*/
set cdsLayer(level: 0 | 1 | 2 | "");
get cdsLayer(): 0 | 1 | 2 | "";
/**
* If cdsLayer is undefined, auto increment & iterate level
*/
set layer(level: number);
get layer(): number;
/**
* Using host bindings with classes to ensure we do not
* overwrite user added classes
*/
get layerOneClass(): boolean;
get layerTwoClass(): boolean;
get layerThreeClass(): boolean;
layerChildren: QueryList<LayerDirective>;
private _passedLevel;
private _level;
ngAfterContentInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<LayerDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<LayerDirective, "[cdsLayer], [ibmLayer]", ["layer"], { "ibmLayer": "ibmLayer"; "cdsLayer": "cdsLayer"; }, {}, ["layerChildren"], never, false>;
}