mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 01:25:38 -05:00
Table Designer: Move columns UI (#19154)
* format * added buttons and initial drag plugin * initial drag and drop working * add actions and taskbar * drag and drop bugfix and other changes * fix few issues * more changes * fix all move and insertion issues * PRcomments * fit and finish comments * remove dead code * bump sts * add style for object being dragged * add plugin to copyright filter * Add to eslintrc * fix drag contrast ratio * generalize logic for cell focus * demo feedback * feedback * add action state * feedback * remove unncecessary check * add move actions to context menu * change to const * fix bug with tables and fix drop color Co-authored-by: chgagnon <chgagnon@microsoft.com>
This commit is contained in:
@@ -187,6 +187,14 @@ export interface DesignerTableProperties extends ComponentProperties {
|
||||
* Whether user can remove rows from the table. The default value is true.
|
||||
*/
|
||||
canRemoveRows?: boolean;
|
||||
/**
|
||||
* Whether user can move rows from one index to another. The default value is false.
|
||||
*/
|
||||
canMoveRows?: boolean;
|
||||
/**
|
||||
* Whether user can insert rows at a given index to the table. The default value is false.
|
||||
*/
|
||||
canInsertRows?: boolean;
|
||||
/**
|
||||
* Whether to show confirmation when user removes a row. The default value is false.
|
||||
*/
|
||||
@@ -214,7 +222,8 @@ export interface DesignerTableComponentRowData {
|
||||
export enum DesignerEditType {
|
||||
Add = 0,
|
||||
Remove = 1,
|
||||
Update = 2
|
||||
Update = 2,
|
||||
Move = 3
|
||||
}
|
||||
|
||||
export interface DesignerEdit {
|
||||
|
||||
Reference in New Issue
Block a user