-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGES: - tag.update() method renamed to tag.updateValue() (for consistency with tag.setValue() and new tag.updateValues() and tag.setValues() APIs - see below) - $.views.getCtx(tagCtx.ctx.foo) API introduced in commit 80 has been removed. Use view.ctxPrm("foo") instead. 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... - Contextual parameters now support 2-way data-binding: <input data-link="~foo" /> - New APIs view.ctxPrm() and tag.ctxPrm(): Programmatically get/set contextual parameters: var fooValue = view.ctxPrm("foo"); // Get value of ~foo view.ctxPrm("foo", newValue); // Set (update observably) value of ~foo Similarly: var fooValue = tag.ctxPrm("foo"); // Get value of ~foo tag.ctxPrm("foo", newValue); // Set value of ~foo - tagCtx now has a tagCtx.contentView property, which is a view object wrapping the contents of the tag (or of the {{else}} block for the tag) - whether content rendered by the tag (using a tag render() method or template), or block content wrapped by the tag. - The APIS: tagCtx.contents() tagCtx.nodes() and tagCtx.childTags() all return contents of the block - and are equivalent to: tagCtx.contentView.contents() etc. (And similarly for the APIs tag.contents(), tag.nodes() and tag.childTags()...) - Improvements to APIs: tag.cvtArgs(), tagCtx.cvtArgs(), tag.bndArgs(), tagCtx.bndArgs() - Views have a new property: view.root, which provides access to the "root ancestor view" (the uppermost view under the top view). - Improvements to APIs: tag.setValue(), tag.setValues(), tag.updateValue(), tag.updateValues() and tagCtx.setValues(). (Details and documentation to follow). - Improvements to linkedElems APIS: linkedElems are now supported on tags with one or more {{else}} blocks. Each {{else} block can have its own linkedElem bindings. - New support for <input type="number"/> Bug fixes: - #380 Support for <input type="number"/> - #382 Cannot set property '_prv' of undefined - Several minor bug fixes Unit tests: - Several additional unit tests
- Loading branch information
1 parent
8a7db5b
commit 3ee4dc6
Showing
29 changed files
with
39,690 additions
and
27,199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.