javascript - How to render a Webix list as blank when no item in it -
i using webix uploader , linking list view display uploaded items. code has been taken [http://docs.webix.com/desktop__file_upload.html][1] , looks below :
view:"form", rows: [ { view: "uploader", value: 'upload file', name:"files", link:"mylist", upload:"js/upload.js" }, { view:"list", id:"mylist", type:"uploader", autoheight:true, borderless:true },
however, when page loads , no file has been uploaded, showing empty line 'undefined' being printed in list placeholder. after uploading file, disappears , uploaded filename getting shown. before uploaded, vainly trying below lines code in function prevent displaying of ugly "undefined" string :
$$('mylist').clearall();
is there way rid of ugly print when page loads. likewise above link referring to, want nothing shown before uploaded. how can achieve ?
thanks.
check there isn't erroneous setvalue() on form component in snippet : http://webix.com/snippet/ea405e4c
Comments
Post a Comment