ng-admin
ng-admin copied to clipboard
listView.url override not working
As described in the view customisation doc, I over-rode the url function for the view to hit a specific URL : mySku.listView().url(function(entityId) { return '/sku/'; });
However this is not working. I tried setting a breakpoint inside the callback; that also is never reached.. What am i doing wrong?
A related issue. editionView().url() override is working, but I want the URL to be hit only for POST . Is there a way i can get operation in the view?
:+1:
Got same issue. I can change url but i dont get "entityId" - undefined instead.
xx.editionView().url(function(entityId) {
console.log(entityId); // this shows "undefined"
return 'route/' + entityId;
})
Same issue for me on editionView
, identifierValue
is undefined.
Same issue with editionView and showview. entityId is undefined. http://stackoverflow.com/questions/40923604/ng-admin-identifier-not-highlighted-and-entityid-not-set