Tags: caojinqin/jsrender
Tags
Commit 87 (v0.9.87 - Beta) Sync with changes in v0.9.87 for JsViews Documentation: - New documentation added for view.ctxPrm() API: https://www.jsviews.com/#jsvviewobject@ctxprm
Commit 86 (v0.9.86 - Beta) Feature improvements: Many new and improved features, particularly related to custom tag scenarios, as shown below. Documentation to follow on each of these improvemnts to provide more information and specifics... - New APIs view.ctxPrm() and tag.ctxPrm(): Programmatically get contextual parameters: var fooValue = view.ctxPrm("foo"); // Get value of ~foo Similarly: var fooValue = tag.ctxPrm("foo"); // Get value of ~foo - Views have a new property: view.root, which provides access to the "root ancestor view" (the uppermost view under the top view). - Several minor bug fixes Minor breaking change: - $.views.getCtx(tagCtx.ctx.foo) API introduced in commit 80 has been removed. Use view.ctxPrm("foo") instead. Unit tests: - Several additional unit tests
Commit 84 (v0.9.84 - Beta) Sync with changes in v0.9.84 for JsViews Feature improvements: - Custom tags: New 'tag contentCtx' feature: Tag definition can include: tag.contentCtx - which specifies the data context within the tag block content. Set contentCtx = true for inheriting parentView context, or to a function, for specifying other context New 'tag argDefault' feature: Tag definition can include: tag.argDefault: false - which prevents the first arg defaulting to current data Bug fixes: - Several minor bug fixes Unit tests: - Several additional unit tests Other minor breaking changes: - The undocumented init: false feature for custom tags has been removed.
Commit 83 (v0.9.83 - Beta) Sync with changes in v0.9.83 for JsViews Downloads: - Minified files provided for all 'plugin librairies' - Updated download pages: https://www.jsviews.com/#download/jsrplugins Bug fixes: - BorisMoore#305 "Unknown template" error message with jQuery 3.0+ - Several minor bug fixes Unit tests: - Several additional unit tests
Commit 82 (v0.9.82 - Beta) Feature improvements: - New tag.contentCtx() method allows custom tags to set the data context in wrapped blocks. - Added {{else}} support on {{range}} (range.js) Documentation: - New documentation and samples for custom get/set property on compiled View Model: https://www.jsviews.com/#viewmodelsapi@ismanagersample https://www.jsviews.com/#samples/computed/team-manager Bug fixes: - Some minor bug fixes Unit tests: - Several additional unit tests
Commit 80 (v0.9.80 - Beta) - Sync to version 80 used by JsViews - no significant changes Unit tests: - Several additional unit tests Documentation: - Several new and improved documentation topics including several new topics under "Targets for data-linking" at https://www.jsviews.com/#link-targets Bug fixes: - Some minor bug fixes
PreviousNext