datetime temp commit
This commit is contained in:
+2
-5
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, ContentChild, ViewChild, Input, Output, EventEmitter, ChangeDetectorRef, forwardRef } from '@angular/core';
|
||||
import { Component, OnInit, ContentChild, ViewChild, Input, Output, EventEmitter, ChangeDetectorRef, forwardRef, OnDestroy } from '@angular/core';
|
||||
import { SelectLabelTemplateDirective } from '../select-label-template.directive';
|
||||
import { IDataSource, ISimpleFilter } from '@poweredsoft/data';
|
||||
import { Observable, Subject, Subscription } from 'rxjs';
|
||||
@@ -17,7 +17,7 @@ import { SelectOptionTemplateDirective } from '../select-option-template.directi
|
||||
}],
|
||||
styleUrls: ['./multi-select.component.scss']
|
||||
})
|
||||
export class MultiSelectComponent implements OnInit {
|
||||
export class MultiSelectComponent implements OnInit,OnDestroy {
|
||||
|
||||
|
||||
@ContentChild(SelectOptionTemplateDirective) optionTemplate: SelectOptionTemplateDirective;
|
||||
@@ -74,9 +74,6 @@ export class MultiSelectComponent implements OnInit {
|
||||
ngOnInit(): void {
|
||||
this.dataFetching();
|
||||
this.detectLoading();
|
||||
|
||||
console.log(this.serverFiltering);
|
||||
|
||||
if(this.serverFiltering){
|
||||
this.searchOnServer();
|
||||
}else{
|
||||
|
||||
+2
-4
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, ContentChild, ViewChild, Input, Output, EventEmitter, ChangeDetectorRef, forwardRef } from '@angular/core';
|
||||
import { Component, OnInit, ContentChild, ViewChild, Input, Output, EventEmitter, ChangeDetectorRef, forwardRef, OnDestroy } from '@angular/core';
|
||||
import { SelectLabelTemplateDirective } from '../select-label-template.directive';
|
||||
import { IDataSource, ISimpleFilter } from '@poweredsoft/data';
|
||||
import { Observable, Subject, Subscription } from 'rxjs';
|
||||
@@ -19,7 +19,7 @@ import { NotFoundTemplateDirective } from '../not-found-template.directive';
|
||||
}],
|
||||
styleUrls: ['./ng-select.component.scss']
|
||||
})
|
||||
export class NgSelectComponent implements OnInit {
|
||||
export class NgSelectComponent implements OnInit,OnDestroy {
|
||||
|
||||
@ContentChild(SelectOptionTemplateDirective) optionTemplate: SelectOptionTemplateDirective;
|
||||
@ContentChild(SelectLabelTemplateDirective) labelTemplate: SelectLabelTemplateDirective;
|
||||
@@ -80,8 +80,6 @@ export class NgSelectComponent implements OnInit {
|
||||
this.dataFetching();
|
||||
this.detectLoading();
|
||||
|
||||
console.log(this.serverFiltering);
|
||||
|
||||
if(this.serverFiltering){
|
||||
this.searchOnServer();
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user