/*! * * Wijmo Library 5.20251.40 * https://developer.mescius.com/wijmo * * Copyright(c) MESCIUS inc. All rights reserved. * * Licensed under the End-User License Agreement For MESCIUS Wijmo Software. * us.sales@mescius.com * https://developer.mescius.com/wijmo/licensing * */ /** * {@module wijmo.angular2.core} * Contains Angular 2 components for the wijmo module. * * wijmo.angular2.core is an external TypeScript module that can be imported to your code * using its ambient module name. For example: * *
import * as wjCore from 'wijmo/wijmo.angular2.core'; * * @Component({ * directives: [wjCore.WjTooltip], * template: '<span [wjTooltip]="'Greeting'">Hello</span>', * selector: 'my-cmp', * }) * export class MyCmp { * }* */ /** * */ export declare var ___keepComment: any; import { EventEmitter, AfterViewInit, ComponentFactoryResolver, ElementRef, Injector, OnInit, OnDestroy } from '@angular/core'; import { IWjComponentMetadata, IWjDirectiveMeta } from 'wijmo/wijmo.angular2.directiveBase'; import * as wjcCore from 'wijmo/wijmo'; declare var wjTooltipMeta: IWjDirectiveMeta; export { wjTooltipMeta }; /** * Angular 2 directive for the {@link Tooltip} class. * * Use the **wjTooltip** directive to add tooltips to elements on the page. * The wjTooltip directive supports HTML content, smart positioning, and touch. * * The wjTooltip directive is specified as an attribute added to the * element that the tooltip applies to. The parameter value is the tooltip * text or the id of an element that contains the text. * * You can also specify the following additional properties for the tooltip: * - wjTooltipPosition - represents the {@link Tooltip.position} property. * For example: * ```html *
* Paragraph with a string tooltip. *
** Paragraph with a tooltip defined as an element. *
* ... * * ``` */ export declare class WjTooltip implements OnInit, OnDestroy, AfterViewInit { private static _toolTip; private _toolTipText; private _toolTipPosition; private _elRef; static readonly meta: IWjComponentMetadata; private _wjBehaviour; /** * Indicates whether the component has been initialized by Angular. * Changes its value from false to true right before triggering the initialized event. */ isInitialized: boolean; /** * This event is triggered after the component has been initialized by Angular, that is * all bound properties have been assigned and child components (if any) have been initialized. */ initialized: EventEmitterHTML * * <wj-flex-grid #flex [itemsSource]="data"> * <wj-flex-grid-column *ngFor="let col of columns" * [header]="col.header" * [binding]="col.binding" * [format]="col.format" * [width]="col.width"> * <ng-template *ngIf="col.cellTemplate" * wjFlexGridCellTemplate [cellType]="'Cell'" * let-cell="cell"> * <wj-component-loader [component]="col.cellTemplate" * [properties]="{item: cell.item}"> * </wj-component-loader> * </ng-template> * </wj-flex-grid-column> * </wj-flex-grid> * * * TypeScript * * @Component({ * ... * }) * export class AppCmp { * columns: any[]; * * constructor() { * this.columns = [ * { header: 'Product', binding: 'product' }, * { header: 'Revenue', binding: 'amount', format: 'n0' }, * { * header: 'Expense', binding: 'amount2', cellTemplate: ExpenseCellCmp * } * ]; * } * } * * @Component({ * ... * }) * export class ExpenseCellCmp { * item: any; * } * * @NgModule({ * imports: [CommonModule, WjGridModule], * declarations: [AppCmp], * entryComponents: [ExpenseCellCmp] * })*/ export declare class WjComponentLoader implements OnInit { private _cmpResolver; private _elementRef; private _component; private _properties; private _cmpRef; private _isInit; private _anchor; propertiesChange: EventEmitter<{}>; constructor(/*@Inject(DynamicComponentLoader) private _dcl: DynamicComponentLoader,*/ _cmpResolver: ComponentFactoryResolver, _elementRef: ElementRef); /** * Gets or sets a component class reference that should be instantiated by the * wj-component-loader component. * * Note that any component class which is expected to be instantiated using the wj-component-loader * component must be declared in the entryComponents array of the application @NgModule decorator. */ component: any; /** * Gets or sets an object with property name-value pairs which is used to initialize the * instantiated component. */ properties: Object; ngOnInit(): void; private _createComponent; private _updateProperties; private _addPropListener; } export declare class WjCoreModule { }