JBHF commited on
Commit
32acd0b
·
verified ·
1 Parent(s): 703371c

Update ToDo.md

Browse files
Files changed (1) hide show
  1. ToDo.md +16 -0
ToDo.md CHANGED
@@ -607,7 +607,23 @@ st.tabs - Streamlit Docs
607
 
608
  https://docs.streamlit.io/library/api-reference/layout/st.tabs
609
 
 
610
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
611
 
612
 
613
  ===========================================================================================================
 
607
 
608
  https://docs.streamlit.io/library/api-reference/layout/st.tabs
609
 
610
+ Bijvoorbeeld:
611
 
612
+ import streamlit as st
613
+
614
+ tab1, tab2, tab3 = st.tabs(["Cat", "Dog", "Owl"])
615
+
616
+ with tab1:
617
+ st.header("A cat")
618
+ st.image("https://static.streamlit.io/examples/cat.jpg", width=200)
619
+
620
+ with tab2:
621
+ st.header("A dog")
622
+ st.image("https://static.streamlit.io/examples/dog.jpg", width=200)
623
+
624
+ with tab3:
625
+ st.header("An owl")
626
+ st.image("https://static.streamlit.io/examples/owl.jpg", width=200)
627
 
628
 
629
  ===========================================================================================================