/*! * * 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: EventEmitter; constructor(elRef: ElementRef, injector: Injector, parentCmp: any); /** * If you create a custom component inherited from a Wijmo component, you can override this * method and perform necessary initializations that you usually do in a class constructor. * This method is called in the last line of a Wijmo component constructor and allows you * to not declare your custom component's constructor at all, thus preventing you from a necessity * to maintain constructor parameters and keep them in synch with Wijmo component's constructor parameters. */ created(): void; ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; wjTooltip: string; wjTooltipPosition: wjcCore.PopupPosition; } /** * Angular component to dynamically load other components. * * Use the wj-component-loader component to create and load an instance of an arbitrary component class * in place of wj-component-loader. You can also pass a set of property values to the instantiated 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. * * The example below demonstrates FlexGrid with columns dynamically generated form the column definitions * array in the data model. Column definition can optionally contain a reference to a component class * that should be used as a cell template. The wj-component-loader component is used to * instantiate such a component in the cell template. *
HTML
 *  
 * <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 { }