img in Datatable

In this issue => https://forum.webix.com/discussion/7390/how-do-i-display-an-image-from-master-in-a-slave,
a solution for uploading pictures was advised.
1) Is it still relevant?
2) Was it so conceived that with each change of focus, a new query will be produced?
https://snippet.webix.com/2n7zo3s9

Tagged:

Comments

  • edited May 15

    Hello @lBeJIuk ,

    Is it still relevant?

    Yep, but I can recommend using base64 encoding for image data and on client side use a template which will place the base64 encoded data as image source.
    Something like

    columns:[
        {id:"image", header:"Image", fillspace:true,  template:function(obj){
            return "<img src='<--!base64 image from data-->'/>"
       }}
    ]
    

    Was it so conceived that with each change of focus, a new query will be produced?

    It's normal behaviour. Template of visible elements is rendered even after selection, so img src will always make a request for an image using the link.

    Please check the sample: https://snippet.webix.com/llwl89ar

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion