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
Option to show/ hide edit mode #68
Comments
I think a better way is to use an attribute for the adf-dashboard directive, this would be analog to the collapsible option. |
Hi, Thanks, |
You can now use the editable attribute on the adf-dashboard directive for example: <adf-dashboard editable="false" ... Or with expression: <adf-dashboard editable="{{scopeVar}}" ... @nunos7 each widget can control if it is editable or not, by adding the edit property. If the edit property is missing, only the title can be changed. I think the collapsible option for individual widgets, does not make much sense. |
You rock. NS |
Could someone help me how to hide settings(cog) icon for specific widget in my dashboard. Thanks in advance |
Hi Sebastian,
Is it possible to have an option to show/ hide the edit option?
In my testing page i've created a variable allowEdit = false and then i've setted her to the model object. In dashboard.html, i've setted ng-if="model.allowEdit" to the span DOM object.
This works, but i don't know if it's the more elegant solution?
Thanks,
NS
The text was updated successfully, but these errors were encountered: