Private method to mark a subtree in an update loop.
This is only intended for use by the DashboardLayout.
Private method to update skipped subtrees in an update loop.
This is only intended for use by the DashboardLayout.
Insert a new child at the "end" of this container.
The default implementation of this function calls insertChild() with the length of the children as 'i'.
The new child to insert into this container
Reset all attached properties for a region
Copy attached properties from one child to another
Create a drag shadow for one of this region's children.
The region that is being dragged
The X coordinate that the drag will start from
The Y coordinate that the drag will start from
A valid HTML node that will follow the mouse during the drag.
Insert a new child into this container at a particular index.
If the widget is already in this region's children, then the widget is moved instead. This matches the behavior of Phosphor panels.
This function also sets the parentRegion of the widget to this region.
The index to insert the child into
The child to insert
Installs a message tap on the content to listen for child-removed.
This tap is necessary for regions that use a custom layout algorithm, since the parent won't necessarily be notified when a Panel child is removed.
Function to layout the grid panel's children
colWidth
= (CalculatedWidth - 2 * [[padding]]) / nCols - [[spacing]].rowHeight
= (CalculatedHeight - 2 * [[padding]]) / nRows - [[spacing]].width
= (colSpan
* colWidth
+ (colSpan
- 1) * [[spacing]]).height
= (rowSpan
* rowHeight
+ (rowSpan
- 1) * [[spacing]]).top
= row
* rowHeight
+ row
* [[spacing]].left
= col
* colWidth
+ col
* [[spacing]].fit-request
to the element.Handle that gets called when this region recieves a new child.
The child being added
Handle that gets called when a child is removed from this region.
Clean up this subtree by removing auto-generated empty regions.
This is a framework function and not meant to be called by user code. The MavenWorks framework will automatically manage the health of the layout, pruning when useful.
Whether a region is "prunable" or not is specified by the <a href="../interfaces/regionwithchildren.iprops.html#prunable">prunable</a>
layout property. For regions created with SurroundWith, this property is
true.
Set this region and all it's children as fresh.
Iterate through all the children of this region, depth-first.
Generated using TypeDoc
A read-only array of this StackPanel's children.