FinalStyler adds the given function for setting the style properties of the widget to [WidgetBase.Stylers.Final]. It is one of the main ways to specify the styles of a widget, in addition to FirstStyler and Styler, which add stylers that are called before the stylers added by this function.
(s func(s *styles.Style))
| 38 | // a widget, in addition to FirstStyler and Styler, which add stylers that are called |
| 39 | // before the stylers added by this function. |
| 40 | func (wb *WidgetBase) FinalStyler(s func(s *styles.Style)) { |
| 41 | wb.Stylers.Final = append(wb.Stylers.Final, s) |
| 42 | } |
| 43 | |
| 44 | // Style updates the style properties of the widget based on [WidgetBase.Stylers]. |
| 45 | // To specify the style properties of a widget, use [WidgetBase.Styler]. |