Comments (6)
Hi @stichiboi,
I plan to add DnD to the component. I have some ideas for that but also I need to think about your solution.
I need to see and read the docs how the dnd-kit you are using works.
from planby.
Also, I have some ideas about functionalities which can be provided by Planby
from planby.
@stichiboi can you send the link to Codesandbox?
from planby.
The original issue is not relevant anymore, I manage to solve the movement on different rows by:
- Restricting to horizontal axis
- Using the
rectIntersection
as the collision detection algorithm
You can recreate the bug by changing the collision detection to closestCenter
(the one suggested by the dnd-kit
tutorial).
I still think, from a user point of view, that having the channel rows separated into different components makes more sense than having just a huge list.
This also impacts performance, since every change with the DND triggers a render of all the items, even if I just changed one row.
Having a wrapper component means that you can also style every row differently.
from planby.
Small note: the scrolling while dragging the element is very bad. Probably it's dnd-kit
's fault, I'm working on improving it.
It's something you might want to pay attention to if you want to implement it in planby
from planby.
Online I see a lot of examples for dnd libraries that implement Kanban Boards: I'm thinking that planby
could implement something like that.
Examples (think of them as horizontal instead of vertical: each section is a channel, each task is a program)
dnd-kit
react-beautiful-dnd
Every row is a different board, and you can move programs between different boards.
Then you can rearrange the programs or the channels.
But you need row separation to do this.
There is actually another option with dnd-kit
, which is to implement a custom sortingStrategy
. I've tried writing something starting from the horizontal scrolling strategy, but definitely don't have the head to do it on a Friday afternoon
from planby.
Related Issues (20)
- Capturing line click event HOT 4
- Change style of Line & add time to Line HOT 3
- Is isLine property can Change UTC TIme? HOT 9
- How to not complete... HOT 1
- Time format HOT 3
- the indicator line is not visible when program data is provided for 48 hours and when next js server rendering on page reload the indicator line goes back 5 and a half hours(UTC) before the local time. HOT 1
- When i set time between box less than 30s ProgramItem will disappear HOT 2
- React Native version HOT 2
- is this possible to have a vertical view? HOT 3
- CRUD scheduling HOT 1
- Improvements HOT 1
- Divide timeline into half hour blocks HOT 1
- Why cant I see my programs getting rendered?
- Feature Request : Option to set timeline dividers to daily, weekly, monthly HOT 3
- Cannot go past 1 day HOT 6
- Bug: isLine is not drawn on day ranges that contain two or more days HOT 1
- Scroll to specified time on mount HOT 2
- How do I override the styling of a specific component? HOT 3
- "Invalid time value" error when startDate to endDate > 1 day and `isBaseTimeFormat` = true HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from planby.