map

defines data mapping

WebixDataMap map;

Example

webix.ui({
    view:"datatable",
    map:{
        name:"#firstname# #lastname#",
        birth:"(date)#birthdate#"
    },
    columns:[
        { id:"name", header:"User name" },
        { id:"birth", header:"Date of birth"}
    ],
    data:[
        { id:1, firstname:"Adam", lastname:"Smith", birthdate:new Date(1985, 1, 1) },
        { id:2, firstname:"Tom", lastname:"Brown", birthdate:new Date(1986, 2, 2) },
    ]
});

Details

For details, check Data Mapping

Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.