-
Notifications
You must be signed in to change notification settings - Fork 490
Action Button loosing it's binding on browser resizing, Please Help #552
Comments
Unfortunately, it's not possible to bind the angular directive inside the responsive extension. I don't really know how to do it. |
what about the idea of compiling the content of the child after showing it ? something like this :
|
@nitin27may : I didn't use the responsive plugin but implemented something pretty similar to what you are trying to achieve (I think).
|
@l-lin is it fixed? |
Hello, just to share an option to bind a directive in child rows that worked for me. If you check the dataTables.responsive.js, Responsive object has a static object called ina property defaults with the following code:
So, in the controller you must copy the code above and simply turn that into a function:
And now we set the responsive option with our new function:
|
Great marcokorb !
and add responsive option
|
I am not able to use md-button or md-checkbox inside the opened box when clicking on the "plus".
The result of the silly 4 lines was just fine, however the ng-repeat did nothing. i generally get the impression that everything is different while coding in that special box with this $compile :[ Im not sure whether i have a stupid bug in my code or it is a real problem. Thanks! (i have abandoned this plugin. If admin finds it right, delete my post. thanks.) |
@marcokorb it is very good solution but in my case after adding this solution in my responsive plugin ng-click are worked but my data are not responding.. In my data table data are responding during full screen mode but not responding in collapse mode |
Hi @l-lin
I followed the example from angular-datatables advance example Bind Angular Directive and used it together with the Responsive plugin. but it's loosing action filed's Binding.
I have follow all comments from the issue #324 but no luck,
it's working fine in full screen.
Here is the Code:
'use strict';
angular.module('showcase.withResponsive', ['datatables'])
.controller('WithResponsiveCtrl', WithResponsiveCtrl);
function WithResponsiveCtrl($scope, $compile,DTOptionsBuilder, DTColumnBuilder) {
var edit = function() {
alert('edit!');
};
}
Table HTML
The text was updated successfully, but these errors were encountered: