Maslosoft Framework Logo Maslosoft Framework Documentation
Flexible Application Foundation


Cell Toggle CSS

Cell Toggle CSS decorator will wrap cell with btn-success CSS class when value is true or with btn-danger CSS class for values evaluating to false.

The CellToggleCss decorator successful color when true, or false otherwise.

This should be placed on model property which will have boolean value.

Example usage:

@Decorator(CellToggleCss)

When combined with toggle renderer resulting rendering can have output like following:

For values evaluating to true:

Yes

For values evaluating to false:

No