Added new components to lib in order to use them in multiple modules such as Intersection, 3D viewer, 2D viewer, and Well log viewer. The main component is a SortableList which can have children of type both SortableListItem and SortableListGroup. The latter can also wrap other SortableListItem and SortableListGroup components. Whenever the order of the list is changed, the onItemMoved callback is called with its four arguments:
itemId: string // the ID of the item which was moved
originId: string | null // the ID of the current parent of the item which was moved - null when main list (top level), string when a SortableListGroup component
destinationId: string | null // the ID of the new parent after the move operation is performed - null when main list (top level), string when a SortableListGroup component
position: number // (0 - number of parent's children + 1) - position in the destination component where the moved item was positioned
The groups and items of the list can be individually filled with adornments, e.g. action buttons (start: before title - end: after the title).
Added new components to
lib
in order to use them in multiple modules such asIntersection
,3D viewer
,2D viewer
, andWell log viewer
. The main component is aSortableList
which can have children of type bothSortableListItem
andSortableListGroup
. The latter can also wrap otherSortableListItem
andSortableListGroup
components. Whenever the order of the list is changed, theonItemMoved
callback is called with its four arguments:The groups and items of the list can be individually filled with adornments, e.g. action buttons (start: before title - end: after the title).