set $columnSpan dynamically?

Is there any way to set $columnSpan based on logic? I'd like a widget to have full span when another widget next to it gets hidden based on logic.
Was this page helpful?