You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,15 @@ Overall the core Framework files and API are expected to remain stable however t
55
55
* New file `js/extensions/format.js` which is used with the Web Components Polyfill
56
56
* Updated `js/plugins/filter.js` so that it shows 0 count for empty tables. Previously it expected the table to have at least one `<tbody>` element. A similar update was made for `js/web-components/input-filter.js`
57
57
* Previously if using `<template>` with `jsonData` page types all `.is-loading, .has-error, .is-loaded` elements could quickly flash on screen during page changes. This has been fixed.
58
-
* Added `app.plugins.i18n.getUserDefaultLang()` to `js/plugins/i18n.js`
58
+
* Routes and JavaScript controls will have empty data HTML attributes mapped to `true` by default instead of an empty string. Previously `data-load-only-once="true"` was used on many pages but now only `data-load-only-once` is required.
59
+
*`js/plugins/i18n.js`
60
+
* Added `app.plugins.i18n.getUserDefaultLang()`
61
+
* The following global API was added so that it can be used easily with templating or by app custom logic. This was based on the Web Component verison which uses simple JavaScript templating and basic functions.
62
+
~~~js
63
+
window.i18n_Locale='en|fr|es|zh-CN'; // Selected language, updated on each page change
64
+
window.i18nText(key) // Returns I18n content for the current page
65
+
~~~
66
+
* data-load-only-once="true"
59
67
* Enhancements for"JavaScript Controls"in the standard Framework. The Framework JavaScript Controls are a similar concept to Web Components but work with all Browsers.
60
68
* Added ability to easily reload by calling `app.activeJsControls(control)`. Updating already loaded controls is not common but can be used in very specific scenarios. For example the newWeb Components Polyfill uses it.
61
69
* Update API to include `model` as a parameter in`control.onLoad(element, model)`
0 commit comments