Spaces:
Runtime error
Runtime error
File size: 1,629 Bytes
3369999 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
from meutils.pipe import *
import streamlit as st
from streamlit_option_menu import option_menu
st.set_page_config(page_title="Option Menu", layout="wide")
with st.sidebar:
selected = option_menu("Main Menu", ["Home", "Upload", "---", "Tasks", 'Settings'],
icons=['house', 'cloud-upload', None, "list-task", 'gear'], menu_icon="cast",
default_index=1)
selected2 = option_menu(None, ["Home", "Upload", "---", "Tasks", 'Settings'],
icons=['house', 'cloud-upload', None, "list-task", 'gear'],
menu_icon="cast", default_index=0, orientation="horizontal")
selected3 = option_menu(None, ["Home", "Upload", "Tasks", 'Settings'],
icons=['house', 'cloud-upload', "list-task", 'gear'],
menu_icon="cast", default_index=0, orientation="horizontal",
styles={
"container": {"padding": "0!important", "background-color": "#fafafa"},
"icon": {"color": "orange", "font-size": "25px"},
"nav-link": {"font-size": "25px", "text-align": "left", "margin": "0px",
"--hover-color": "#eee"},
"nav-link-selected": {"background-color": "green"},
}
)
# choice = option_menu(
# "Menu", ["首页", "HIVE", "KUDU", "MYSQL"],
# icons=['house', 'chat-square', 'chat-square-dots', 'chat-square-text'], menu_icon="hammer",
# default_index=0)
# df.style.set_precision
|