Comments (1)
After thinking it over, it seemed like a special case. Closed the issue.
I'll leave it here as a recipe
from bokeh.models import Div, TabPanel, Tabs
from bokeh.plotting import show
from bokeh.layouts import layout
level0 = [1, 2]
level1 = [1, 2, 3]
level2 = [1, 2, 3, 4]
label = "Lorem ipsum"
stylesheet = """
:host(.bk-Tabs) .bk-header {{
border-bottom: 1px solid {tabcolor};
.bk-active {{
color: {tabcolor};
border-color: {tabcolor};
background-color: lightgray;
}}
}}
"""
tabs0 = list()
for l0 in level0:
tabs1 = list()
for l1 in level1:
tabs2 = list()
for l2 in level2:
tabs2.append(TabPanel(child=Div(text='Lorem ipsum'),
title=f"{l0}.{l1}.{l2} {label} at level 2"))
tabs1.append(TabPanel(child=Tabs(tabs=tabs2, stylesheets=[stylesheet.format(**dict(tabcolor="green"))]),
title=f"{l0}.{l1} {label} at level 1"))
tabs0.append(TabPanel(child=Tabs(tabs=tabs1, stylesheets=[stylesheet.format(**dict(tabcolor="blue"))]),
title=f"{l0} {label} at level 0"))
show(Tabs(tabs=tabs0, stylesheets=[stylesheet.format(**dict(tabcolor="red"))]))
from bokeh.
Related Issues (20)
- [BUG] Documentation: TypeScript in Custom Extensions section fails to compile HOT 4
- VBox is not working in 3.4.0rc1 HOT 14
- [FEATURE] Tab labels are fitted to the width of the page
- [BUG] Button does not updated when property is changed
- `Tooltip` node positioning is wrong when the target is offset
- [BUG] Figures break inside Scrollbox if using frame_height or followed by div using stretch_width HOT 1
- `webgl` backend doesn't support non-visual overrides
- [BUG] Visualization of large(r) dataset fails to load even if amount of data being rendered remains the same HOT 12
- Missing release notes
- [BUG] Dropdown doesnt update properly when .menu changed in 3.4
- [BUG] TimePicker widget not displaying correct time as set by `value` HOT 2
- [FEATURE] More documentation for (bundling) custom extensions HOT 2
- GMap example not showing glyphs HOT 4
- Remove twitter icon link from docs and other properties HOT 2
- Add support toggleable `CustomAction` tool buttons HOT 4
- [DOCUMENTATION] Boxplot example wrongly computes whiskers HOT 2
- [FEATURE] Make pandas optional dependency with polars as alternative HOT 1
- [BUG] Nanosecond-precision datetime is truncated to microsecond HOT 3
- [BUG] sizing mode issue with layout and nested rows, columns HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bokeh.