Skip to content

docs update code success#900

Open
lizzy985 wants to merge 11 commits intowidgetti:masterfrom
lizzy985:docs_update_code_success
Open

docs update code success#900
lizzy985 wants to merge 11 commits intowidgetti:masterfrom
lizzy985:docs_update_code_success

Conversation

@lizzy985
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Also here.

@maartenbreddels maartenbreddels force-pushed the master branch 2 times, most recently from cded5b2 to 32af76f Compare December 20, 2024 12:52
@iisakkirotko iisakkirotko force-pushed the docs_update_code_success branch from 8735a83 to 2d0e66c Compare December 30, 2024 09:31
Comment on lines +32 to +35
text=text,
dense=dense,
outlined=outlined,
icon=icon,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Also here

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

solara.Checkbox(label="Show as text", value=text)
solara.Checkbox(label="Show outlined", value=outlined)
solara.Success(
f"This is solara.Success(label='...', text={text}, dense={dense}, outlined={outlined}, icon={icon})",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should use the .values here instead of the reactives

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you! I already fixed it. If there is any issues, please let me know.

Copy link
Copy Markdown
Collaborator

@iisakkirotko iisakkirotko left a comment

Choose a reason for hiding this comment

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

Looks good other than the unrelated changes. I can clean those up unless you specifically want to @lizzy985.

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

Successfully merging this pull request may close these issues.

2 participants