Docs for st.link_button#14452
Conversation
|
Thanks for contributing to Streamlit! 🎈 Please make sure you have read our Contributing Guide. You can find additional information about Streamlit development in the wiki. The review process:
We're receiving many contributions and have limited review bandwidth — please expect some delay. We appreciate your patience! 🙏 |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
There was a problem hiding this comment.
Pull request overview
This PR updates the docstring for st.link_button to better align parameter and return-value documentation with current Streamlit documentation patterns, especially for elements that can optionally behave like widgets.
Changes:
- Expanded
keyparameter documentation to the newer “stable identity / Session State / CSS class” pattern. - Reworded
on_click,args, andkwargsdocs to clarify widget-like behavior and callback handling. - Updated the documented return type to avoid surfacing
DeltaGenerator, using the “element” placeholder terminology instead.
Describe your changes
Docs only.
Consistency:
keydescription for completeness and consistency with the latest pattern.on_clickfor consistency with other sometimes-widget elements, emphasizing the change in return value, too.DeltaGeneratorin the docs. So (per my latest understanding), we brush over that with the concept of "element" until we get a user-friendly subclass or rename forDeltaGenerator.Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.