Page object
This object references the current HMI device page. The page is the top-level object of the screen.
Page object properties
Properties available at page level.
backgroundColor
string backgroundColor (in format rgb(xxx, xxx, xxx) where xxx range from 0 to 255)
Page background color.
function btnStd11_onMouseRelease(me) {
page.backgroundColor = "rgb(128,0,0)";
}
(Available on web pages)
width
number width
Page width in pixels.
function btnStd05_onMouseRelease(me) {
var middle_x = page.width / 2;
}
(Available on web pages, get only)
height
number height
Page height in pixels.
function btnStd05_onMouseRelease(me) {
var middle_y = page.height / 2;
}
(Available on web pages, get only)
userValue
string userValue
Gets or sets a user-defined value for the widget. This field can be used by JavaScript functions to store additional data with
the page.
352
HMWIN Studio |User Manual|v206 (2017-06-30) |EN|© 2014-2017 Panasonic Electric Works Europe AG
Page object