Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CanvasLayoutRegion

Hierarchy

Index

Constructors

constructor

Properties

content

content: Panel

Protected metadata

typeName

typeName: CanvasLayoutRegion = LayoutTypes.CanvasLayoutRegion

Static Rectangle

Rectangle: AttachedProperty<DashboardLayoutRegion<IDashboardLayoutProperties>, string> = new AttachedProperty<DashboardLayoutRegion, string>({create: () => "0,0,100,100",name: "Canvas Panel.Rectangle",changed: (owner) => {owner.setStale();if (owner.parentRegion == null) return;MessageLoop.sendMessage(owner.parentRegion, Widget.Msg.FitRequest);MessageLoop.sendMessage(owner.parentRegion, Widget.Msg.UpdateRequest);}})

Accessors

widgets

Methods

Private _markSubtreeForUpdate

  • _markSubtreeForUpdate(): void

Private _updateSkippedSubtrees

  • _updateSkippedSubtrees(): void

addChild

clearAttachedProperties

copyAttachedProperties

createDragShadow

dispose

  • dispose(): void

getAttachedPropertyForChild

Protected getDefault

  • getDefault(propertyName: string): unknown

insertChild

  • Insert a new child into this container at a particular index.

    Notes

    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.

    Parameters

    Returns void

Protected installContentTap

  • installContentTap(): void
  • 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.

    Returns void

layoutChildren

  • layoutChildren(): void

Protected onChildRegionAdded

Protected onChildRegionRemoved

  • Handle that gets called when a child is removed from this region.

    remarks

    Subclassers can override this method to implement custom logic, such as removing CSS classes or event handlers. Custom chroming elements added via Region Chroming will be removed automatically.

    This function is not called until after the oldChild has been moved, and will not be called if the old child is disposed. It will also not be called when this region is being disposed.

    The default implementation of this function is a no-op.

    Parameters

    Returns void

Protected onCloseRequest

  • onCloseRequest(): void

Protected onDragOver

  • onDragOver(ev: IDragEvent): void

Protected onDrop

  • onDrop(ev: IDragEvent): void

processMessage

  • processMessage(msg: Message): void

pruneSubtree

  • pruneSubtree(): void
  • Clean up this subtree by removing auto-generated empty regions.

    Notes

    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.

    see

    IRegionWithChildrenProps.prunable

    see

    DashboardActions.SurroundWith

    Returns void

setFresh

  • setFresh(): void

sizeContentToFit

  • sizeContentToFit(bounds: object): void

subtree

updateFromProperties

  • updateFromProperties(): void

Static GetMetadata

Generated using TypeDoc