SetReadOnly sets the [states.ReadOnly] flag to the given value.
(ro bool)
| 64 | |
| 65 | // SetReadOnly sets the [states.ReadOnly] flag to the given value. |
| 66 | func (wb *WidgetBase) SetReadOnly(ro bool) *WidgetBase { |
| 67 | return wb.SetState(ro, states.ReadOnly) |
| 68 | } |
| 69 | |
| 70 | // HasStateWithin returns whether this widget or any |
| 71 | // of its children have the given state flag. |