VisActor / VisActor/VTable

[Feature] 甘特图限制taskbar移动方向以及限制时间轴范围

Open
#3,219 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

What problem does this feature solve?
  1. 请问现在甘特图在配置了tasksShowMode: VTableGantt.TYPES.TasksShowMode.Sub_Tasks_Inline之后,能限制taskbar的拖动方向吗。没有配置时taskbar只能横向拖动(即只在自己所在行进行平移),但配置了tasksShowMode之后taskbar可以被拖到其他行。。这个能做限制吗,只希望taskbar在自己所在行进行拖动。

  2. 甘特图现在能限制时间轴范围吗,例如我想将开始时间和结束时间限制在6-23点这个区间。我目前通过minDate和maxDate能在视图上实现这个效果,但是我拖动taskbar或是resize taskbar时可以超出这个时间范围。。

What does the proposed API look like?

moveDirection

visibleTimeStart, visibleTimeEnd

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the Gantt taskbar drag and resize behavior, especially the existing tasksShowMode, minDate, and maxDate options. Define and validate movement-direction and visible-time-boundary behavior so taskbars remain in their own row and edits cannot exceed the requested time range.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.