Code Monkey home page Code Monkey logo

Comments (14)

dalogsdon avatar dalogsdon commented on July 20, 2024

I agree that it is more intuitive to grab anywhere to drag. The reason there is a drag handle is that the cell output may contain widgets that are interactive, so we did not want the dragging to interfere with the interaction.

However, now that we have a 'View' mode in addition to a 'Layout' mode, we could use 'Layout' mode for dragging anywhere on the cell, blocking mouse interaction with any cell output. Then 'View' mode would allow interacting with the outputs of each cell.

from dashboards.

jtyberg avatar jtyberg commented on July 20, 2024

I can't speak for everyone, but when I'm in Layout mode, I'm thinking about cell position and size. So I like the idea of favoring those interactions over interactions with widgets. I wonder what others think. I may be in the minority.

from dashboards.

parente avatar parente commented on July 20, 2024

I've found myself interacting with a cell in layout mode to see if dynamic content fits in the cell or not. I'd go nuts flipping between layout and view to get that right.

from dashboards.

lbustelo avatar lbustelo commented on July 20, 2024

I'm not a fan of modes.

Maybe when you hover, a larger frame and drag target appears around that does not interfere with content.

Gino B.

On Oct 26, 2015, at 8:13 PM, Peter Parente [email protected] wrote:

I've found myself interacting with a cell in layout mode to see if dynamic content fits in the cell or not. I'd go nuts flipping between layout and view to get that right.


Reply to this email directly or view it on GitHub.

from dashboards.

Lull3rSkat3r avatar Lull3rSkat3r commented on July 20, 2024

Can we put the drag handle around the entire border? Have the very edge be for resizing and have a small border for dragging. Now that I am writing it out seems a little wonky, but maybe will seed some innovation 🐮

from dashboards.

parente avatar parente commented on July 20, 2024

Hotkey (Cmd) you hold while click/dragging to indicate "I want to move this" instead of "I want to interact with this"? Can be doc'ed somewhere / show up as a first time tooltip on drag?

from dashboards.

parente avatar parente commented on July 20, 2024

Discussed that we should look into hotkey modifier approach with doc for it in a tooltip or something (to be opened separately). We will keep the current dragger icon too.

from dashboards.

dalogsdon avatar dalogsdon commented on July 20, 2024

We will take the hotkey approach. Working on this with @jhpedemonte.

from dashboards.

jtyberg avatar jtyberg commented on July 20, 2024

😂 👍

from dashboards.

dalogsdon avatar dalogsdon commented on July 20, 2024

Hold the Shift key to be able to drag anywhere on a dashboard cell. Each cell will display the move icon to indicate this.

drag-cells-shift

@jtyberg Give it a try when PR #91 is merged.

🐙

from dashboards.

parente avatar parente commented on July 20, 2024

Tested a bit. Confirmed that it doesn't have any effect in dashboard view or deployed dashboard (correct). Really tried to break it by holding shift while clicking outside browser and back to notebook mode. It does get "stuck" but pressing and releasing shift to reset things works fine.

@jtyberg Give feedback when you've got a chance to try it.

from dashboards.

jtyberg avatar jtyberg commented on July 20, 2024

Very nice. Using the Shift key and dragging works just fine.

The only thing I noticed is the dragging a cell is a bit laggy when I've got a lot of cells (50+) in my notebook.

from dashboards.

dalogsdon avatar dalogsdon commented on July 20, 2024

Yes, the layout is all absolute positioned, CPU intensive. The decision could be either to improve performance or recommend that a dashboard has less than X cells, since typical dashboards have maybe 10 at the most. Additionally, we could look into an interface such as tabbing to increase content while improving performance by moving cells to other (non-rendered) Gridstack instances.

from dashboards.

jhpedemonte avatar jhpedemonte commented on July 20, 2024

Performance issues may be due to translucency. One solution may be to disable that in certain cases (lots of cells, slow machine, older browser, etc).

from dashboards.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.