Angular 5 - dtOptions with promise

Angular 5 - dtOptions with promise

anakin59490anakin59490 Posts: 20Questions: 7Answers: 0

Hi,

i try to use promise in order to get and show my data with indivudual column filter

but nothing appears

the values are well retrieved

but i think they are not placed in the right data

Thank you for your help

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin
    Answer ✓

    You'd need to take this up with the author of the Angular integration for DataTables. That is not a component that is written by us I'm afraid.

    Allan

  • anakin59490anakin59490 Posts: 20Questions: 7Answers: 0

    OK, sorry

    just in case, it works with

    ajax: (dataTablesParameters: any, callback) => {
            that.klinckServices.getActiveTasks(this.auth.getEcmUsername())
              .then((webScriptdata) => {
                console.log('HomeComponent - ajax');
                  success = webScriptdata;
                  this.listTasks = success.data as ActiveTask[];
                  callback({
                    data: [] = success.data as ActiveTask[]
                  });
                },
                msg => {
                  alert(msg);
                });
            }
    
This discussion has been closed.