Liferay DXP JavaScript Utilities

This tutorial explains some of the utility methods and objects inside the Liferay global JavaScript object.

Liferay Browser

The Liferay.Browser object contains methods that expose the current user agent characteristics without the need of accessing and parsing the global window.navigator object.

The available methods for the Liferay.Browser object are listed in the table below:

MethodTypeDescription
acceptsGzipboolean
getMajorVersionnumber
getRevisionnumber
getVersionnumber
isAirboolean
isChromeboolean
isFirefoxboolean
isGeckoboolean
isIeboolean
isIphoneboolean
isLinuxboolean
isMacboolean
isMobileboolean
isMozillaboolean
isOperaboolean
isRtfboolean
isSafariboolean
isSunboolean
isWebKitboolean
isWindowsboolean

Liferay Theme Display

« Working with URLs in JavaScriptInvoking Liferay Services »
¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0