how to implement javascript sourced Data
how to implement javascript sourced Data
Rahis
Posts: 1Questions: 1Answers: 0
Hello.
You guys are doing real good.Let's get to the point.I saw your example post for javascript sourced data.But not a real time implementation.Im getting data through ajax and im formatting the data into javascript sourced data
For Eg:
My data is [1,Emp1],[2,Emp2];
How will i format this array into javascript sourced data.
Any Help is appreciated.
This discussion has been closed.
Answers
Assuming the DataTable already exists, use
rows.add()
. If it doesn't exist already usedata
.Moreover, if you want to do a real time table, a web socket handler that calls
row.add()
,row().data()
androw().remove()
are likely the API methods you'll need.Allan