Created
July 22, 2019 16:24
-
-
Save ShikaSD/625fdc3e8f7a253e85264a56213c01ea to your computer and use it in GitHub Desktop.
Diff API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onChange( | |
TextModel::textStyle, | |
callback { | |
DesignSystemConfigurationsHolder.textComponentConfigurator.applyStyle(it, this@TextComponent) | |
textStyle = it | |
} | |
) | |
onChange( | |
TextModel::action, | |
callback( | |
update = { action -> setOnClickListener { action() } }, | |
clear = { | |
setOnClickListener(null) | |
isClickable = false | |
} | |
) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TextModel::textStyle onChange callback { | |
DesignSystemConfigurationsHolder.textComponentConfigurator.applyStyle(it, this@TextComponent) | |
textStyle = it | |
} | |
TextModel::action onChange callback( | |
update = { action -> setOnClickListener { action() } }, | |
clear = { | |
setOnClickListener(null) | |
isClickable = false | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment