getValue of ui.uploader, Methods Webix Docs
returns the current value of the control
string getValue();
| string | the current value of the control |
Example
webix.ui({
view: "uploader", value: 'Upload file',
id:"records", name:"records",
link:"mylist",
upload:"//docs.webix.com/samples/server/upload"
});
$$("records").files.parse([
{ name:"cover.jpg", sizetext:"54kb", status:"server" },
{ name:"page01.jpg", sizetext:"122kb", status:"server" },
{ name:"page02.jpg", sizetext:"142kb", status:"server" }
]);
$$("records").getValue();
/*
cover.jpg,
page01.jpg,
page02.jpg
*/
Details
The returned value of the control may be:
- text value in the input text and textarea field;
- selected item like date in calendar and color in the colorboard;
- state of the two-state control (checkbox, radio, toggle);
- selected option of integral buttons (tabbar, tabview, segmented);
- selected option of select, richselect, and combo;
- string with selected options of a multiselect and multicombo control.
See also