Frontmatter
| id | 2358 |
| title | model.Component: support for non string based bindings |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Jun 13, 2021, 9:40 PM |
| updatedAt | Jun 13, 2021, 9:43 PM |
| githubUrl | https://github.com/neomjs/neo/issues/2358 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jun 13, 2021, 9:43 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 },