-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to extend smart-tables using custom directives #12
Comments
Hello, Please note on the custom.js tab
for more information about directive controller you can see the documentation cheers, Laurent |
Thanks, when I add a new directive to Directives.js with require: ^smartTable i get an error saying cant find smartTable controller |
because your directive must have a parent elment in the markup wich has the 'smart-table' directive. So it must be either one the directives you see in the table template, or one you will insert thanks to the I suggest you watch [https://github.com/lorenzofox3/Smart-Table/blob/master/smart-table-module/partials/smartTable.html](this video), this explains what is a directive controller Laurent |
Ah I understand now, thanks. Apologies I am very new to angular and still getting my head around directives. |
no problem |
Hi @lorenzofox3 I'd love to access the |
Hi, return {
require: '^smartTable',
link: function (scope, element, attr, ctrl) {
}
}; Laurent |
Ahh. Thanks a ton. I'm getting a kick out of forking your project. Learning a lot from it. |
Hello,
Thanks for your brilliant work. Could you provide a simple example of how to extend smart tables with a custom directive that access the API.
Thank you
The text was updated successfully, but these errors were encountered: