@angular/core#IterableDiffers TypeScript Examples

The following examples show how to use @angular/core#IterableDiffers. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: dxc-row-def.directive.ts    From halstack-angular with Apache License 2.0 6 votes vote down vote up
// TODO(andrewseguin): Add an input for providing a switch function to determine
  //   if this template should be used.
  constructor(
    template: TemplateRef<any>,
    _differs: IterableDiffers,
    @Inject(DXC_RESULTSET_TABLE) @Optional() public _table?: any
  ) {
    super(template, _differs);
  }
Example #2
Source File: table.ts    From halstack-angular with Apache License 2.0 6 votes vote down vote up
constructor(
    protected readonly _differs: IterableDiffers,
    protected readonly _changeDetectorRef: ChangeDetectorRef,
    protected readonly _elementRef: ElementRef,
    @Attribute("role") role: string,
    @Optional() protected readonly _dir: Directionality,
    @Inject(DOCUMENT) _document: any,
    private resolver: ComponentFactoryResolver,
    private paginationService: PaginationService,
    private sortService: SortService
  ) {
    if (!role) {
      this._elementRef.nativeElement.setAttribute("role", "grid");
    }

    this._document = _document;
    this._isNativeHtmlTable =
      this._elementRef.nativeElement.nodeName === "TABLE";

    this.setClassName();
  }
Example #3
Source File: index.ts    From nativescript-plugins with Apache License 2.0 6 votes vote down vote up
constructor(_elementRef: ElementRef,
              private _iterableDiffers: IterableDiffers) {
    this.accordionItemsView = _elementRef.nativeElement;
    this.accordionItemsView.on('headerLoading', this.onHeaderLoading, this);
    this.accordionItemsView.on('itemHeaderLoading', this.onItemHeaderLoading, this);
    this.accordionItemsView.on('itemContentLoading', this.onItemContentLoading, this);
    this.accordionItemsView.on('footerLoading', this.onFooterLoading, this);

  }
Example #4
Source File: index.ts    From nativescript-plugins with Apache License 2.0 6 votes vote down vote up
constructor(_elementRef: ElementRef, _iterableDiffers: IterableDiffers, zone: NgZone) {
    super(_elementRef, _iterableDiffers, zone);
  }
Example #5
Source File: pager-items-comp.ts    From nativescript-plugins with Apache License 2.0 6 votes vote down vote up
constructor(
    _elementRef: ElementRef,
    private _iterableDiffers: IterableDiffers,
    private zone: NgZone
  ) {
    this.templatedItemsView = _elementRef.nativeElement;

    this.templatedItemsView.on("itemLoading", this.onItemLoading, this);
    this.templatedItemsView.on("itemDisposing", this.onItemDisposing, this);
  }
Example #6
Source File: row.ts    From halstack-angular with Apache License 2.0 5 votes vote down vote up
constructor(
    /** @docs-private */ public template: TemplateRef<any>,
    protected _differs: IterableDiffers
  ) {}
Example #7
Source File: index.ts    From ui-pager with Apache License 2.0 5 votes vote down vote up
constructor(_elementRef: ElementRef, _iterableDiffers: IterableDiffers) {
        super(_elementRef, _iterableDiffers);
    }
Example #8
Source File: pager-items-comp.ts    From ui-pager with Apache License 2.0 5 votes vote down vote up
constructor(_elementRef: ElementRef, private _iterableDiffers: IterableDiffers) {
        this.templatedItemsView = _elementRef.nativeElement;

        this.templatedItemsView.on('itemLoading', this.onItemLoading, this);
        this.templatedItemsView.on('itemDisposing', this.onItemDisposing, this);
    }
Example #9
Source File: index.ts    From nativescript-plugins with Apache License 2.0 5 votes vote down vote up
constructor(_elementRef: ElementRef,
              _iterableDiffers: IterableDiffers) {
    super(_elementRef, _iterableDiffers);
  }
Example #10
Source File: container.ts    From slate-angular with MIT License 5 votes vote down vote up
constructor(protected elementRef: ElementRef<any>,
        protected differs: IterableDiffers) {
    }