Changes
This section describes the changes made since the previous version of the client.
Merge of desktop and mobile widgets
In the Mendix 5 client release, the difference between desktop and mobile widgets has been lifted. The widgets and other UI parts have been moved to a single namespace, mxui
. The mobile namespace (mobile
) has been removed and common functionality has been merged. Widgets should now be defined using dojo.declare, and inherit from mxui.widget._WidgetBase
.
Namespace changes
- The contents of the
mobile.dom
namespace has been moved undermxui.dom
Deprecations
Deprecated functionality is supported for two major releases after the deprecation notice to allow for code updates. After this deadline, deprecated functions may be removed from the platform.
Deprecation notes also exist for version 3 and version 4 of the platform.
- mx
.mobile
lost its meaning because of the merge of desktop and mobile widgets.
- mx.ui
.getLocale
has been deprecated, usedojo.locale
instead
- mendix.lang
.inArray
has been deprecated, usedojo.indexOf
instead
- mxui.dom
.removeElement
has been deprecated, usemxui.dom.orphan
instead.setTextContent
has been deprecated, usemxui.dom.text
instead.getTextContent
has been deprecated, usemxui.dom.text
instead.textContent
has been deprecated, usemxui.dom.text
instead.removeChildNodes
has been deprecated, usedojo.empty
instead.clearSelectOptions
has been deprecated, usedojo.empty
instead.getAncestorClass
has been deprecated, usedojo.query
instead.getElementsByTagNames
has been deprecated, usedojo.query
instead.getAncestorNodeWithAttribute
has been deprecated, usedojo.query
instead.setHTML
has been deprecated, usemxui.dom.html
instead.getSelectOptions
has been deprecated, usemxui.dom.getSelectOptions
instead.selectOption
has been deprecated, usedojo.attr
instead.hasClass
has been deprecated, usedojo.hasClass
instead.getClass
has been deprecated, usedojo.getAttr
instead.setClass
has been deprecated, usedojo.replaceClass
instead.addClass
has been deprecated, usedojo.addClass
instead.addClasses
has been deprecated, usedojo.addClass
instead.removeClass
has been deprecated, usedojo.removeClass
instead.show
has been deprecated, usedojo.style
instead.hide
has been deprecated, usedojo.style
instead.setReadOnly
has been deprecated, usedojo.setAttr
instead.unsetReadOnly
has been deprecated, usedojo.removeAttr
instead.applyDisableStyle
has been deprecated, usedojo.setAttr
instead.applyEnableStyle
has been deprecated, usedojo.removeAttr
instead.setOpacity
has been deprecated, usedojo.style
instead.insertCss
has been deprecated, usemxui.dom.addCss
instead.escapeHTML
has been deprecated, usemxui.dom.escapeString
instead.getFormElementText
has been deprecated, usedojo.getAttr
instead.getStringSize
has been deprecated, usedojo.contentBox
instead.clone
has been deprecated, usedojo.clone
instead.getFirstElement
has been deprecated, useElement.children
instead.getFirstChild
has been deprecated, usedojo.query
instead
- mobile.widget
._Widget
has been deprecated, usemxui.widget._WidgetBase
instead
- mxui.widget
._Widget
has been deprecated, usemxui.widget._WidgetBase
instead