Skip to content

Commit

Permalink
docs(tabler-icons): updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Apr 14, 2024
1 parent be6b63c commit 80abbe0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions examples/validation/discussion/495.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
pip install trame trame-vuetify
python ./495.py
"""
from trame.app import get_server
from trame.ui.vuetify3 import VAppLayout
from trame.widgets import vuetify3, html, client
Expand All @@ -6,17 +10,17 @@

# 1. Grab the font
server.enable_module(
dict(
styles=[
{
"styles": [
"https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@3.2.0/dist/tabler-icons.min.css"
]
)
}
)


with VAppLayout(server, full_height=True):
# 2. Force .ti font-family
client.Style(".ti.mdi:before{font-family:tabler-icons;}")
client.Style(".ti:before{font-family:tabler-icons!important}")

with vuetify3.VContainer(fluid=True, classes="full-height"):
# MDI
Expand Down

0 comments on commit 80abbe0

Please sign in to comment.