Skip to content

Support for tabler-icons in addition to material design icons #495

Answered by jourdain
banesullivan asked this question in Q&A
Discussion options

You must be logged in to vote

While you are right by saying they are not streamlined, they are fairly easy to add without any trame change or pip install.
But I would not mind adding a trame-tabler to further streamline it and enable non-internet access support.

But by adding 2 lines to your code, you can enable the tabler-icons:

  1. server.enable_module({"styles":["https://cdn.jsdelivr.net/npm/@tabler/[email protected]/dist/tabler-icons.min.css"]})
  2. client.Style(".ti.mdi:before{font-family:tabler-icons;}")

You can find a full working example here

Otherwise, a strip down version of it has been pasted below

from trame.app import get_server
from trame.ui.vuetify3 import VAppLayout
from trame.widgets import vuetify3, html, 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@banesullivan
Comment options

Answer selected by banesullivan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants