Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for active_tab (rerun-io#5499)
### What Referring to an object created in the same constructor is somewhat awkward. Forcing users to create the object out-of-line so they can assign it to a variable and then refer to it is just a pain. Specifying a name or index seems like a convenient middle ground. Example ```python Tabs( BarChartView(name="Bar Chart", origin="/bar_chart", contents=["/bar_chart/**"]), TimeSeriesView(name="Curves", origin="/curves", contents=["/curves/**"]), TimeSeriesView(name="Trig", origin="/trig", contents=["/trig/**"]), TimeSeriesView(name="Classification", origin="/classification", contents=["/classification/**"]), active_tab="Curves", ), ``` ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested the web demo (if applicable): * Using newly built examples: [app.rerun.io](https://app.rerun.io/pr/5499/index.html) * Using examples from latest `main` build: [app.rerun.io](https://app.rerun.io/pr/5499/index.html?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [app.rerun.io](https://app.rerun.io/pr/5499/index.html?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG * [x] If applicable, add a new check to the [release checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)! - [PR Build Summary](https://build.rerun.io/pr/5499) - [Docs preview](https://rerun.io/preview/4c45a10b77cb3dd4794ca2d2ac8267e3d9230606/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/4c45a10b77cb3dd4794ca2d2ac8267e3d9230606/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)
- Loading branch information