ContainedButton - hpi-swa-teaching/MaterialDesignWidgets GitHub Wiki
class MDContainedButton
You can create a TextButton by simply calling MDContainedButton new openInHand.
This will show the default ContainedButton.
To create a basic custom MDContainedButton you might want to use something like the following:
MDContainedButton new
text: 'Change my color';
backgroundColor: '#2196F3';
target: [ self backgroundColor: Color blue ];
actionSelector: #value;
openInHand
Customizing a MDContainedButton
Appearance
text: aStringset the button's texttextColor: aStringOrColorset the text's colorbackgroundColor: aStringOrColorset the background color
Actions
target: anObjectset the target the messageactionSelectorwill be send toactionSelector: aSymbolOrStringset the message which will be send totargetarguments: aCollectionset the arguments for the messageactionSelectorwhich be send totargetstate enablemakes the button clickabledefaultstate disableprevents the button from being clicked