| Col 1 | Col 2 | Col 3 | Col 4 | Col 5 |
| dynamic-colspan="{{testWidth > 2 ? 2 : 0}}" via ternary | ||||
| dynamic-colspan="{{testWidth}}" via scope variable | ||||
| dynamic-colspan="{{ {4: fullWidth} }}" via object | ||||
| dynamic-colspan="{{ {3: !fullWidth, 5: fullWidth} }}" via test | ||||
| dynamic-colspan="{{ userWidth }}" set via row below | ||||
| {{num}} |
Allows setting colspan via the following:
dynamic-colspan="2"
dynamic-colspan="row.columnWidth"
dynamic-colspan="testWidth > 2 ? 2 : 0"
ng-class
), such as
dynamic-colspan="{99: rowType === 'heading', 1: rowType === item, 3: rowType === data}"
For more usages, play with the HTML source in the CodePen .