OutlinedButton - hpi-swa-teaching/MaterialDesignWidgets GitHub Wiki

class MDOutlinedButton

You can create an OutlinedButton by simply calling MDOutlinedButton new openInHand. This will show the default OutlinedButton.

To create a basic custom MDOutlinedButton you might want to use something like the following:

MDOutlinedButton new
    text: 'Change my color';
    target: [self textColor: Color blue];
    actionSelector: #value;
    openInHand

Customizing a MDOutlinedButton

Appearance
  • text: aString set the button's text
  • textColor: aStringOrColor set the text's color
  • backgroundColor: aStringOrColor set the background color
Actions
  • target: anObject set the target the message actionSelector will be send to
  • actionSelector: aSymbolOrString set the message which will be send to target
  • arguments: aCollection set the arguments for the message actionSelector which be send to target