Table of Contents

DocumentViewerClientEvents.RotationChanged Property

Definition

Namespace
GleamTech.DocumentUltimate.AspNet.UI
Assembly
GleamTech.DocumentUltimate.dll

Gets or sets the client-side event raised when page rotation is changed. The value should be a valid JavaScript function name which is accessible on the host page. Function names should be specified without parentheses like "FunctionName" or "Namespace.FunctionName".

public string RotationChanged { get; set; }

Property Value

string

Examples

Example function:

function documentViewerRotationChanged(e) { 
    var documentViewer = e.target;

    //Pretty print the event arguments
    var json = JSON.stringify(e.detail, null, 2);

    console.log(json);
}

//SAMPLE OUTPUT:
/*
{
  "eventName": "rotationChanged",
  "document": "p4450.pdf",
  "pagesRotation": 90,
  "pageNumber": 2,
  "pageRotation": 90
}
*/