A
A
Alexey Trofimenko2015-10-07 08:29:11
JavaScript
Alexey Trofimenko, 2015-10-07 08:29:11

How to display CSV in Webix Datatable?

Good afternoon, tell me what I'm doing wrong.
Basically, here is the code:

dtable = new webix.ui({
      container: "box",
      view:"datatable",
      columns:[
          { id:"data0", header:"", width:50},
          { id:"data1", header:"Film title", width:200},
          { id:"data2", header:"Released" , width:80},
          { id:"data3", header:"Votes", width:100}
        ],
        autoheight:true,
        autowidth:true,
        datatype:'csv',
        url:"codebase/data.csv"
});

Why do I only see the Datable header, but not the data. What am I doing wrong?
4a80e48b1d134c3288a318c0c038b6dd.PNG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
malev35, 2018-05-14
@malev35

It won't work directly for security reasons. There are two options to read the file with an interactive selection or start a web server and throw csv there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question