onbeforeopen event

SplitView.onbeforeopen event

Applies to Windows and Windows Phone

Raised just before opening the pane. Call preventDefault on this event to stop the pane from opening.

Syntax


function handler(eventInfo) { /* Your code */ }
 
// addEventListener syntax
splitView.addEventListener("beforeopen", handler);
splitView.removeEventListener("beforeopen", handler);
 
- or -

splitView.onbeforeopen = handler;


Event information

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

eventInfo

Type: Event

An object that contains information about the event.

Remarks

Replaces the onbeforeshow event.

Requirements

Minimum WinJS version

WinJS 4.0-Preview

Namespace

WinJS.UI

See also

SplitView

 

 

Show:
© 2017 Microsoft