-
-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Icon to Panel #1589
Comments
One thing I cannot see through though is if inlining svgs is too slow because it needs to be transfered from server to client and needs to be layout by Bokeh. It's preferred in the front end world I believe because it general and most easily can be styled and animated. Maybe the value should also allow being an url to a svg. Or maybe there should be a seperate non-inline SVGIcon for that use case? |
I wonder if we should implement a reactivehtml / custom panel model or wait for Bokeh? |
'm working on wrapping the Fast Design components into Bokeh extensions and Panel widgets. A part of this needs support of Icons.
I've looked at how Icons are used and supported today. See #1586. Fast just uses inline SVG and it's also preferred by CSS tricks https://css-tricks.com/pretty-good-svg-icon-system/.
So my thinking is that this is a good a general way to support icons whether they are coming from font-awesome, material, fluid, adobe designer or any other place.
So I have built a prototype. And now the question is where the bokeh extension and widgets should live: Bokeh, Panel or Awesome-Panel-Extensions.
I have suggested adding the bokeh extension to Bokeh here bokeh/bokeh#10502 and I would like to add the Panel widget to Panel.`
Let me know if you would like to accept a PR and help me review it.
A part of the PR would be adding the
icon
parameter to the PanelButton
widget.POC Panel Widget
POC Test
The text was updated successfully, but these errors were encountered: