'How to add Azure SQL server to Grid.js table data attribute
Solution 1:[1]
Below is the sample code,
const grid = new gridjs.Grid({
columns: ['EmployeeID', 'FirstName', 'LastName', 'Address_1','HomePhone','CellPhone','Email','HourlyWage','credit_hours','SSN'],
data => data.map(x => [x.EmployeeID, x.FirstName, x.LastName, x.Address_1,x.HomePhone,x.CellPhone,x.Email,x.HourlyWage,x.credit_hours,x.SSN])
});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | RajkumarPalnati-MT |