This repository was archived by the owner on Feb 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 490
Custom Button not working #454
Labels
Comments
This does not work with datatable="ng", Any idea for a workaround? |
fromFnServerData call time also custom button not displaying |
The problem I see is when you reach the timeout function the additional classes are not yet rendered. link: function (scope, element) { $timeout(function () { console.log(element.html()); // if you look at your console it does not have the whole table rendered yet. console.log(element.find('.custom-element)) // if you look at your console and expand it should show zero length data. }, 0, false); |
I think it needs to be bound with https://datatables.net/reference/option/initComplete somehow. |
I got it to work on my case, in a hacky sort of way. I add this to my controller $('#user-datatable').on('draw.dt', function () { $compile($('.add-user-button'))($scope); }); From what I can determine, the element for the table can be located using jQuery and the |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This my code and my issue is that when i m use .fromFnPromise for call json at a time custom button is not working
The text was updated successfully, but these errors were encountered: