Skip to content

feat: tab dragging functionality - #34

Merged
invisal merged 1 commit into
querymx:mainfrom
ebfood:tab-drag
Jul 9, 2023
Merged

feat: tab dragging functionality#34
invisal merged 1 commit into
querymx:mainfrom
ebfood:tab-drag

Conversation

@ebfood

@ebfood ebfood commented Jul 9, 2023

Copy link
Copy Markdown
Contributor

This change resolves #7

To add drag functionality . I exposed two more properties:
draggable means that it is possible to drag tab.
onTabDragged will change the tab states when drag is success. (onTabChanged already exists)

Furthermore, taking inspiration from the interaction in VSCode, I have implemented the following two details:

  • Select the current tab when dragging starts.
  • Change the background color of the target position during dragging.

@sonarqubecloud

sonarqubecloud Bot commented Jul 9, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@invisal

invisal commented Jul 9, 2023

Copy link
Copy Markdown
Collaborator

Fantastic. You are life-saving :)

@invisal invisal left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work.

@invisal
invisal merged commit 2a6eaca into querymx:main Jul 9, 2023
@ebfood
ebfood deleted the tab-drag branch July 9, 2023 14:03
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

Successfully merging this pull request may close these issues.

Tab should be draggable

2 participants