Skip to content
New issue

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

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

Already on GitHub? # to your account

docs update code info #899

Merged
merged 9 commits into from
Jan 23, 2025
Merged

Conversation

lizzy985
Copy link
Contributor

@lizzy985 lizzy985 commented Dec 2, 2024

No description provided.

Comment on lines 21 to 23
dense, set_dense = solara.use_state(False)
outlined, set_outlined = solara.use_state(True)
text, set_text = solara.use_state(True)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, replace use_state with use_reactive

@maartenbreddels maartenbreddels force-pushed the master branch 2 times, most recently from cded5b2 to 32af76f Compare December 20, 2024 12:52
solara.Checkbox(label="Show as text", value=text)
solara.Checkbox(label="Show outlined", value=outlined)
solara.Info(
f"This is solara.Info(label='...', text={text}, dense={dense}, outlined={outlined}, icon={icon})",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also use .value here.

Suggested change
f"This is solara.Info(label='...', text={text}, dense={dense}, outlined={outlined}, icon={icon})",
f"This is solara.Info(label='...', text={text.value}, dense={dense.value}, outlined={outlined.value}, icon={icon.value})",

Comment on lines 32 to 35
text=text,
dense=dense,
outlined=outlined,
icon=icon,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here

Suggested change
text=text,
dense=dense,
outlined=outlined,
icon=icon,
text=text.value,
dense=dense.value,
outlined=outlined.value,
icon=icon.value,

@iisakkirotko iisakkirotko merged commit 8c88df1 into widgetti:master Jan 23, 2025
29 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants