Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Dynamic change dtColumns and dtOptions didn't work  #15

Closed
@nabilblk

Description

@nabilblk

Hi i want to ge able to reload my table when the dtOption change :

http://plnkr.co/edit/7UAunYtUezmYgJwDBwM4
I add a button that call a reload function :

  $scope.reload = function(){
  $scope.dtOptions = DTOptionsBuilder.fromPromise(simpleFactory1.getData()).withPaginationType('full_numbers');
$scope.dtColumns = [
  DTColumnBuilder.newColumn('id').withTitle('ID'),
  DTColumnBuilder.newColumn('firstName').withTitle('First name'),
  DTColumnBuilder.newColumn('lastName').withTitle('Last name').notVisible()
];
}

This function search data from a new service : simpleFactory1

The table didn't refresh with new data . Is this normal ?

Thanks for your help .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions