Html -> databinding based on Object key: value. #94
-
Hi, I'm familiar with es6. In order to filter Array Object could be done with .filter(). Question: How could I achieve this on Html so single |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Mubeen In the latest beta releases of the package we do support a few coalescing and aggregate functions. The selectWhere sounds like it would work for your situation e.g. They are not well documented, but there is a unit test sample if you wanted to check it in action, Last unit test from here And I have added a sample to our new preview tool, which will hopefully work for you - would love to know if it does. You can see / alter the template and data by clicking the edit button. |
Beta Was this translation helpful? Give feedback.
Hi Mubeen
In the latest beta releases of the package we do support a few coalescing and aggregate functions.
Each, eachOf, selectWhere, and sortBy
The selectWhere sounds like it would work for your situation e.g.
They are not well documented, but there is a unit test sample if you wanted to check it in action, Last unit test from here
Expression Binding Test
And I have added a sample to our new preview tool, which will hopefully work for you - would love to know if it does.
Station wagon preview
You can see / alter the template and data by clicking the edit button.