Skip to content

Table: add support for dragging table rows by mouse#421

Open
bschwarzent wants to merge 1 commit into
releases/26.2from
features/bsh/26.2/dnd-table
Open

Table: add support for dragging table rows by mouse#421
bschwarzent wants to merge 1 commit into
releases/26.2from
features/bsh/26.2/dnd-table

Conversation

@bschwarzent

Copy link
Copy Markdown
Member

354650

@bschwarzent bschwarzent self-assigned this Jul 3, 2026
@cguglielmo cguglielmo force-pushed the features/bsh/26.2/dnd-table branch from 2e11f8c to 4b2ef12 Compare July 6, 2026 14:14
import {ColumnLookupCall, DndTableFormWidgetMap} from '../../index';
import model from './DndTableFormModel';

export class DndTableForm extends Form {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A separate form is fine to show some features, but please extend from HierarchicalTableForm instead of copying it.
Also add a checkbox to enable the rowsDraggable property to the TableProperties box so it is available for the other table forms too

}

protected _onTableAcceptRowDrop(event: TableAcceptRowDropEvent) {
if (event.targetRow?.id === '2') {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These rules are confusing, we should use reasonable cases.
confusing is for example: moving after row 2 is forbidden but before next row is allowed. Or moving inside 1 is forbidden but before or after children is allowed

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.

2 participants