-
Notifications
You must be signed in to change notification settings - Fork 20
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
Custom Breakpoints #2
Comments
Hi @KenPixelMii Thanks for your advice, that is a good feature, but customize the breakpoints name is not supported by the footable itself, users only can customize the width of the breakpoints, please refer to the example page. |
Hi, Actually with FooTable you can create your own breakpoint names, see the getting started demo/docs http://fooplugins.com/footable-demos/ I have implemented this and it works fine but I have to put it in all of my Angular templates where I have tables. Is there a way I can set this in a directive? I appreciate your help. Ken |
@KenPixelMii - Have you had any luck with this? I dug in to the js a little bit, and thought that I could use table-opts="ngObject", but that hasn't seemed to get it for me. Any word from @ziscloud? |
@KenPixelMii @mattjameswdd - Not sure if this is right but I added this line to my app.js in module/app: function applicationStartup($window) {
$window.footable.options.breakpoints.tablet = 939;
} Note: this will set the breakpoint for your app globally. You will have to do something different if you want to set it on a per page basis but this seems to be what everyone is asking. |
Hi,
Firstly, thank you for providing this, it works great! This really isn't an "issue", more of my not being familiar with using plugins with AngularJS. When using angular-footable how would I specify custom breakpoints within the directive?
example:
breakpoints: {medium: 1160}
Thanks in advance.
Ken
The text was updated successfully, but these errors were encountered: