Posted 29 June 2018, 2:17 am EST
Or rather, what is the typescript equivalent of the above JavaScript commands? I’m looking through the typescript declaration file but can’t seem to find something that works. For instance, to make other changes, the demo had me add the following typescript to spread.component.ts:
spreadBackColor = ‘aliceblue’;
sheetName = ‘First Incurred’;
hostStyle = {
maxwidth: ‘800px’,
height: ‘600px’
};
data = [
{Name: ‘Apple’, Category: ‘Fruit’, Price: 1, ‘Shopping Place’: ‘Wal-Mart’},
{Name: ‘Potato’, Category: ‘Fruit’, Price: 2.01, ‘Shopping Place’: ‘Other’},
{Name: ‘Tomato’, Category: ‘Vegetable’, Price: 3.21, ‘Shopping Place’: ‘Other’},
{Name: ‘Sandwich’, Category: ‘Food’, Price: 2, ‘Shopping Place’: ‘Wal-Mart’},
{Name: ‘Hamburger’, Category: ‘Food’, Price: 2, ‘Shopping Place’: ‘Wal-Mart’},
{Name: ‘Grape’, Category: ‘Fruit’, Price: 4, ‘Shopping Place’: ‘Sun Store’}
];
columnWidth = 100;
I need something like this but to control frozenColumns. Is there a list of these TypeScript commands I can find for Spread?