On Dec 1, 2017, at 11:30, Andrea Tagliabue <[email protected]> wrote:
Hi Eugene/Bryan,
thanks for the reply. I am sorry but i am kind of lost about what you wrote. Would you mind to provide a very basic but real example of how to incorporate an image into html and where to put that code? Or how can i edit the icon.less doc?
Thanks,
Andrea
On 1 December 2017 at 18:14, Eugene Pakhomov <[email protected]> wrote:
Just to expand on it a bit - to facilitate sharing of static HTML files, and to potentially ease configuration of Bokeh server, it may make more sense to embed CSS into the HTML template, as well as icons in base64, as described e.g. here: Data URIs | CSS-Tricks - CSS-Tricks
- Eugene
On Saturday, December 2, 2017 at 12:11:12 AM UTC+7, Bryan Van de ven wrote:
Hi,
This is a nearly unexplored corner of Bokeh. I believe you are the first person ever to want a custom icon for a custom tool. Everything about making tools and their icons was previously and for a very long time purely an implementation detail, of interest only to core devs. Even now that making custom extensions more common, custom tools specifically are a niche use case. So there is not much by way of documentation for it.
That said, a few notes may help:
* The bokeh.icons stuff you linked is not related to toolbar icons at all. In any case, it has also been completely removed since then, which is why there are no new references to it. You can safely forget about it.
* built in Toolbar icons are provided by .less files here:
https://github.com/bokeh/bokeh/blob/master/bokehjs/src/less/icons.less
I believe you will have to similarly encode your icons in a CSS file (not exactly sure what Less does with the image files, maybe base64 encodes them?) then supply the CSS in a template for your app or standalone document. Then the tool can be configured to use the CSS name of the icon you defined. I *believe* that will work.
THanks,
Bryan
> On Dec 1, 2017, at 10:58, Eugene Pakhomov <[email protected]> wrote:
>
> Hi Andrea,
>
> I don't think there's a documentation for that, but you can look at the source code here https://github.com/bokeh/bokeh/blob/master/bokehjs/src/less/icons.less and at the images themselves here https://github.com/bokeh/bokeh/tree/master/sphinx/source/_images/icons
>
> Regards,
> Eugene
>
> On Friday, December 1, 2017 at 11:55:41 PM UTC+7, Andrea Tagliabue wrote:
> More detail:
>
> into the JS_CODE i have
> icon: "bk-tool-icon-arrow-right"
>
> => no icon in the browser
>
>
>
>
> On Friday, December 1, 2017 at 5:51:27 PM UTC+1, Andrea Tagliabue wrote:
> Hi All,
> I am trying to change the name of the icon which need to be used for a custom toolbar tool but i am getting some probs.
> I am using this ref Bokeh Docs but it's quite dated
> I couldn't find any updated doc.
> Anyone has an idea about it?
>
> Many thanks,
> Andrea
>
> --
> You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.
> To post to this group, send email to bo...@continuum.io.
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9f9d0cc7-4832-4889-b055-8d6776a33f3c%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/436a0be0-7732-42af-84ce-806a786ad7d5%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAKUye6DHj34jbukHoB%2B9bYWdeJwHQg6Y2VQ573bF4KciXCxV2Q%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.