< div class="myjtline" > </ div >
$('.myjtline').jTLine({
callType: 'jsonObject',
structureObj: myObject,
onPointClick: function (e) {
console.log(e);
}
});
// dataRoot : '/'
var jsonObject = [
{
"isSelected": "true",
"taskTitle": "My First Point 1",
"taskSubTitle": "January 16th, 2014",
"assignDate": "16/01/2014",
"taskShortDate": "16 Jan",
"taskDetails": "hi <span style="color:red"> my html content </span> other text"
},
{
"isSelected": "",
"taskTitle": "My Point 2",
"taskSubTitle": "February 28th, 2014",
"assignDate": "28/02/2014",
"taskShortDate": "28 Feb",
"taskDetails": contentText
},
{
"isSelected": "",
"taskTitle": "My Point 3",
"taskSubTitle": "March 20th, 2014",
"assignDate": "20/04/2014",
"taskShortDate": "20 Apr",
"taskDetails": contentText
}];