DevExtreme Vue - JSON Data

Load JSON data by assigning its URL to the dataSource option.

JavaScript
$(function() {
    $("#tagBoxContainer").dxTagBox({
        dataSource: "https://jsonplaceholder.typicode.com/users",
        valueExpr: 'username',
        displayExpr: 'name'
    });
});

Note that you can also use a JSONP callback parameter supported by jQuery.ajax().

JavaScript
$(function() {
    $("#tagBoxContainer").dxTagBox({
        dataSource: "http://www.example.com/dataservices/jsonpdata?callback=?",
        // ...
    });
});

Implement the CustomStore if you need to process data after obtaining it. See the Custom Sources topic for more details.

See Also