Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

button click change icon , first time click icon will change but second time change previous icon not change, please help me how to achive this. #304

Closed
vijaymsc opened this issue Jul 15, 2024 · 1 comment

Comments

@vijaymsc
Copy link

{ "type": "scaffold", "args": { "body": { "type": "center", "args": { "child": { "type": "container", "args": { "height": 100, "width": 250, "child": { "type": "set_default_value", "args": { "values": { "default": "upload", "nonDefault": "cancel" }, "child": { "type": "column", "args": { "children": [ { "type": "conditional", "listen": [ "upload", "cancel" ], "args": { "conditional": { "values": { "default": "upload" } }, "onTrue":{ "type": "icon_button", "args": { "iconSize": 80, "icon": { "type": "icon", "args": { "icon": { "codePoint": "0xe26e", "fontFamily": "MaterialIcons", "size": 50 } } }, "onPressed": "${set_value('default','nonDefault')}" } }, "onFalse":{ "type": "icon_button", "args": { "iconSize": 80, "icon": { "type": "icon", "args": { "icon": { "codePoint": "0xef28", "fontFamily": "MaterialIcons" } } }, "onPressed": "${set_value('nonDefault','default')}" } } } } ] } } } } } } } } } }

@crisperit
Copy link
Contributor

Cannot do anything in a issue created like that

Please, create the branch with the example page that reproduces the issue - e.g and reopen when it'll be done
https://github.com/peiffer-innovations/json_dynamic_widget/blob/main/json_dynamic_widget/example/assets/pages/issue_289.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants