-
Notifications
You must be signed in to change notification settings - Fork 147
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
docs update code success #900
Open
lizzy985
wants to merge
12
commits into
widgetti:master
Choose a base branch
from
lizzy985:docs_update_code_success
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
dd203f3
docs update code success
lizzy985 9e8fb17
docs_update_code_success_2
lizzy985 0d93663
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2d0e66c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] d58ab1f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9cea765
Update CI package locks
github-actions[bot] d5fef7f
docs update code success
lizzy985 72b670c
docs_update_code_success_2
lizzy985 f7fb9b0
docs_update_code_success_3
lizzy985 deb054c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c3e54c5
docs_update_code_success_4
lizzy985 91385f7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -17,24 +17,23 @@ | |||||||||||||||||
|
||||||||||||||||||
@solara.component | ||||||||||||||||||
def Page(): | ||||||||||||||||||
icon, set_icon = solara.use_state(True) | ||||||||||||||||||
dense, set_dense = solara.use_state(False) | ||||||||||||||||||
outlined, set_outlined = solara.use_state(True) | ||||||||||||||||||
text, set_text = solara.use_state(True) | ||||||||||||||||||
with solara.VBox() as main: | ||||||||||||||||||
with solara.GridFixed(4): | ||||||||||||||||||
solara.Checkbox(label="Use icon", value=icon, on_value=set_icon) | ||||||||||||||||||
solara.Checkbox(label="Show dense", value=dense, on_value=set_dense) | ||||||||||||||||||
solara.Checkbox(label="Show as text", value=text, on_value=set_text) | ||||||||||||||||||
solara.Checkbox(label="Show outlined", value=outlined, on_value=set_outlined) | ||||||||||||||||||
solara.Success( | ||||||||||||||||||
f"This is solara.Success(label='...', text={text}, dense={dense}, outlined={outlined}, icon={icon})", | ||||||||||||||||||
text=text, | ||||||||||||||||||
dense=dense, | ||||||||||||||||||
outlined=outlined, | ||||||||||||||||||
icon=icon, | ||||||||||||||||||
) | ||||||||||||||||||
return main | ||||||||||||||||||
icon = solara.use_reactive(True) | ||||||||||||||||||
dense = solara.use_reactive(False) | ||||||||||||||||||
outlined = solara.use_reactive(True) | ||||||||||||||||||
text = solara.use_reactive(True) | ||||||||||||||||||
|
||||||||||||||||||
with solara.GridFixed(4): | ||||||||||||||||||
solara.Checkbox(label="Use icon", value=icon) | ||||||||||||||||||
solara.Checkbox(label="Show dense", value=dense) | ||||||||||||||||||
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})", | ||||||||||||||||||
text=text, | ||||||||||||||||||
dense=dense, | ||||||||||||||||||
outlined=outlined, | ||||||||||||||||||
icon=icon, | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also here
Suggested change
|
||||||||||||||||||
) | ||||||||||||||||||
|
||||||||||||||||||
|
||||||||||||||||||
__doc__ += apidoc(solara.Success.f) # type: ignore |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the
.value
s here instead of the reactivesThere was a problem hiding this comment.
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.