angular-datatables icon indicating copy to clipboard operation
angular-datatables copied to clipboard

Access for ElementRef

Open joseahr opened this issue 9 years ago • 1 comments

Well, this is really not an issue. I think it would be useful a public method to get access for the private property el : ElementRef.

In my project I need to create this method so that I can empty the table before replacing it, otherwise I get errors.

this.dtElement.dtInstance.then( dtInstance =>{
  dtInstance.destroy();
  $(this.dtElement.getElement().nativeElement).empty();
   this.dtElement.dtOptions = this.getOptions(...);
   this.dtElement.dtTrigger.next();
});

It would be possible to have such feature in future versions?

joseahr avatar Apr 07 '17 15:04 joseahr

Closing as the version is no longer maintained.

l-lin avatar Nov 25 '17 15:11 l-lin