Compartir a través de


SplitView.onbeforeopen event

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

Synchronous No
Bubbles Yes
Cancelable Yes

 

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