Skip to content
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

Feature-request: Draggable sensor values #4

Open
hsimilli opened this issue Apr 19, 2017 · 1 comment
Open

Feature-request: Draggable sensor values #4

hsimilli opened this issue Apr 19, 2017 · 1 comment

Comments

@hsimilli
Copy link
Contributor

It would be handy to have the sensor boxes draggable.
Especially when having multiple sensor boxes it can get messy.

I tried to play around with the ui-draggable and draggable directives in angular, but without any success

Feel free to comment if you have any ideas how to do this

@vbessler
Copy link
Owner

vbessler commented Apr 20, 2017

Hi hsimilli,
If I modify module.html with the following:
"<div class="drag-handle" ui-draggable="true" ng-style="{position: 'absolute', top: 0, left: 0 ....."
It initiates the drag event when I try to drag the div.
That's as far as I got.
I seem to end up reading the grafana code when figuring out stuff. Do you know a better source. It probably doesn't help that I'm not familiar with angular. For instance what events can a grafana controller subscribe to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants