[ALOY-771] Allow operators and expressions in TSS
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Alloy 1.0.0 |
| Fix Version/s | n/a |
| Components | Styling |
| Labels | n/a |
| Reporter | Tony Lukasavage |
| Assignee | Unknown |
| Created | 2013-08-02T11:47:16.000+0000 |
| Updated | 2018-03-07T22:26:11.000+0000 |
Description
We should support basic arithmetic, bitwise, and comparison operators in the TSS values. This should include the ability to establish precedence via parentheses. The following should be valid:
'Window': {
windowSoftInputMode: Ti.UI.Android.SOFT_INPUT_STATE_HIDDEN | Ti.UI.Android.SOFT_INPUT_ADJUST_PAN
}
'.someClass': {
backgroundColor: '#fff',
height: Ti.Platform.displayCaps.platformHeight / 2,
width: (Ti.Platform.displayCaps.platformWidth + 50) / 2
}
'.otherClass': {
visible: Alloy.Globals.someBoolean && Alloy.Globals.anotherBoolean
}
No comments