UNPKG

@progress/kendo-angular-layout

Version:

Kendo UI for Angular Layout Package - a collection of components to create professional application layoyts

34 lines (33 loc) 1.63 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { Directive, HostBinding } from '@angular/core'; import * as i0 from "@angular/core"; /** * Defines any media that displays and aligns in the Card. * The media can be an image, video, or any other media type. * * ```html * <kendo-card> * <div kendoCardMedia> * <img src="path/to/image.jpg" alt="Card Media"> * </div> * </kendo-card> * ``` */ export class CardMediaDirective { hostClass = true; static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardMediaDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CardMediaDirective, isStandalone: true, selector: "[kendoCardMedia]", host: { properties: { "class.k-card-media": "this.hostClass" } }, ngImport: i0 }); } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CardMediaDirective, decorators: [{ type: Directive, args: [{ selector: '[kendoCardMedia]', standalone: true }] }], propDecorators: { hostClass: [{ type: HostBinding, args: ['class.k-card-media'] }] } });