-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Changing configuration options at runtime #386
Comments
Currently, no it doesn't appear to be possible as a lot of the config options are internalized when the grid is initialized and the grid doesn't watch for them to be updated. |
Is it possible to have some of them configurable? I am interested especially in i18n. |
@azountas You mean like swapping out translations without refreshing the page? |
Yes. Is this possible? |
If you consider doing this, please consider the ability to change column headers (property displayName) dynamically. |
Is it possible to change i18n at runtime? I saw a comment in issue #287 that suggests that it is possible to change languages "on the fly", but there was no explanation of how to do so. I tried just changing the value of |
It seem's that the i18n isn't really watched, but you can use this to change the localization of ng-grid at runtime: |
looking at issue 287(#287) it makes it seem that it is possible to change boolean variables during runtime, however after playing around with it, it seems that these variables are only configurable and initialization of the gird. Is there anyway to do this in the current state?
Here is a plunk attempting a version of what I want to do, it tries to toggle the selection checkbox with the click of a button
http://plnkr.co/edit/jTLnF2?p=preview
The text was updated successfully, but these errors were encountered: