Condividi tramite


ListView.onheadervisibilitychanged event

Raised when the header's visibility property changes.

Syntax

<div data-win-control="WinJS.UI.ListView" data-win-options="{onheadervisibilitychanged : handler}" />
function handler(eventInfo) { /* Your code */ }
 
// addEventListener syntax
listView.addEventListener("headervisibilitychanged", handler);
listView.removeEventListener("headervisibilitychanged", handler);
 
- or -

listView.onheadervisibilitychanged = handler;

Event information

Synchronous No
Bubbles Yes
Cancelable No

 

Event handler parameters

  • eventInfo
    Type: CustomEvent**

    An object that contains information about the event. The detail property of this object contains the following sub-properties:

    • detail.visible
      true if the header is visible; otherwise, false.

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ListView