LearnNewsExamplesServices
Frontmatter
id2358
titlemodel.Component: support for non string based bindings
stateClosed
labels
enhancement
assigneestobiu
createdAtJun 13, 2021, 9:40 PM
updatedAtJun 13, 2021, 9:43 PM
githubUrlhttps://github.com/neomjs/neo/issues/2358
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJun 13, 2021, 9:43 PM

model.Component: support for non string based bindings

Closed v8.1.0 enhancement
tobiu
tobiu commented on Jun 13, 2021, 9:40 PM

formatter fns so far required the template literals syntax.

e.g.

bind: {
    enableResizingAcrossOppositeEdge: data => `${data.enableEventResizingAcrossOppositeEdge}`
},

however, there are use cases where you want to bind to a {Boolean} or {Number} or non primitives, so we need an alternative syntax to support this:

bind: {
    enableResizingAcrossOppositeEdge: data => data.enableEventResizingAcrossOppositeEdge
},
tobiu added the enhancement label on Jun 13, 2021, 9:40 PM
tobiu assigned to @tobiu on Jun 13, 2021, 9:40 PM
tobiu referenced in commit 7d69239 - "model.Component: support for non string based bindings #2358" on Jun 13, 2021, 9:43 PM
tobiu closed this issue on Jun 13, 2021, 9:43 PM