Hey there! So, in my Ember project, I currently have a button with the following code snippet:
{{my-button label="Add" enabled=(lt gridItems.length maxRecordsInGrid)}}
Right now, the "enabled" property is based on whether gridItems.length is less than maxRecordsInGrid. But now, I want to add a second condition to this. If a property named "enableBtn" is true.
So essentially, I want the "enabled" property to require both conditions to be met:
- gridItems.length is less than maxRecordsInGrid
- enableBtn is true
Is it feasible to achieve this directly in the template using some built-in HTMLBars condition without having to create explicit helpers?