LayoutShift

Overview

The LayoutShift interface of the Layout Instability API provides insights into the stability of web pages based on movements of the elements on the page.

Location

Properties


hadRecentInput

 

property hadRecentInput: Boolean read write;

 

Boolean hadRecentInput { get; set; }

 

var hadRecentInput: Boolean { get{} set{} }

 

Boolean hadRecentInput { __get; __set; }

 

Property hadRecentInput() As Boolean

lastInputTime

 

property lastInputTime: DateTime read write;

 

DateTime lastInputTime { get; set; }

 

var lastInputTime: DateTime { get{} set{} }

 

DateTime lastInputTime { __get; __set; }

 

Property lastInputTime() As DateTime

sources

 

property sources: HTMLElement read write;

 

HTMLElement sources { get; set; }

 

var sources: HTMLElement { get{} set{} }

 

HTMLElement sources { __get; __set; }

 

Property sources() As HTMLElement

value

 

property value: String read write;

 

String value { get; set; }

 

var value: String { get{} set{} }

 

String value { __get; __set; }

 

Property value() As String

Required Methods


toJSON

Converts the properties to JSON.

 

method toJSON: dynamic

 

dynamic toJSON()

 

func toJSON() -> dynamic

 

dynamic toJSON()

 

Function toJSON() As dynamic