This is an extension and not part of the main GoJS library. Note that the API for this class may change at any time. If you intend to use an extension in production, you should copy the code to your own source directory. See the Extensions intro page for more information.
Constructs a ColumnResizingTool and sets the handle and name of the tool.
Optional
init: Partial<ColumnResizingTool>Readonly
adornedThis read-only property returns the go.Panel of type go.Panel.Table whose columns are being resized. This must be contained within the selected go.Part.
Readonly
handleThis read-only property returns the go.GraphObject that is the tool handle being dragged by the user. This will be contained by an go.Adornment whose category is "ColumnResizing". Its go.Adornment.adornedObject is the same as the adornedTable.
Gets or sets small GraphObject that is copied as a resize handle for each column. This tool expects that this object's go.GraphObject.desiredSize (a.k.a width and height) has been set to real numbers.
The default value is a go.Shape that is a narrow rectangle.
Gets or sets the name of the Table Panel to be resized.
The default value is the name "TABLE".
Override
canVirtual
computeOverride
doFind the handle, ensure type go.Panel.Table, capture the mouse, and start a transaction.
If the call to go.Tool.findToolHandleAt finds no "ColumnResizing" tool handle, this method returns without activating this tool.
Override
doOverride
doOverride
doCall resize with a new size determined by the current mouse point. This determines the new bounds by calling computeResize.
Override
doCall resize with the final bounds based on the most recent mouse point, and commit the transaction. This determines the new bounds by calling computeResize.
Actually change the width of a RowColumnDefinition. This is called by resize within the tool's transaction.
Change the go.RowColumnDefinition.width of the column being resized to a value corresponding to the given mouse point. This calls doResize to actually change the RowColumnDefinition.
the value returned by the call to computeResize
Override
updateShow an go.Adornment with a resize handle at each column. Don't show anything if tableName doesn't identify a go.Panel that has a go.Panel.type of type go.Panel.Table.
The ColumnResizingTool class lets the user resize each column of a named Table Panel in a selected Part.
If you want to experiment with this extension, try the Column Resizing sample.