ng-hub-ui-board
Version:
An Angular-based Kanban board component with Trello-like drag-and-drop, customizable columns, and straightforward event handling.
31 lines (30 loc) • 1.12 kB
TypeScript
import { TemplateRef } from '@angular/core';
import * as i0 from "@angular/core";
/**
* Directive that allows customization of card templates within board columns.
*
* This directive is used to define custom templates for rendering board cards.
* It provides access to the template reference that can be used by the board component
* to render cards with custom layouts and styling.
*
* @example
* ```html
* <ng-template cardTpt let-card="item" let-column="column">
* <div class="custom-card">
* <h3>{{ card.title }}</h3>
* <p>{{ card.description }}</p>
* </div>
* </ng-template>
* ```
*/
export declare class CardTemplateDirective {
templateRef: TemplateRef<unknown>;
/**
* Creates a new CardTemplateDirective instance.
*
* @param templateRef - The template reference that contains the custom card layout
*/
constructor(templateRef: TemplateRef<unknown>);
static ɵfac: i0.ɵɵFactoryDeclaration<CardTemplateDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<CardTemplateDirective, "[cardTpt]", never, {}, {}, never, never, true, never>;
}