I just moved over to JQWIDGETS 4.5.4 and getting the following TypeScript error. I’m using TypeScript 2.4.2 with Angular-cli 1.2.6 and NPM jqwidgets-framework 4.5.4.
Error:(74, 5) TS2322:Type ‘{ width: number; height: number; theme: string; value: string; disabled: false; textPosition: str…’ is not assignable to type ‘ButtonOptions’.
Types of property ‘height’ are incompatible.
Type ‘number’ has no properties in common with type ‘Size’.
Here are the settings definitions I have working with JQWIDGETS 4.5.1.
editButtonSettings: jqwidgets.ButtonOptions = {
width: ‘100%’,
height: 25,
theme: ‘energyblue’,
value: ‘Edit’,
disabled: false,
textImageRelation: ‘imageBeforeText’,
textPosition: ‘left’,
imgSrc: ‘assets/images/edit.png’
};
Thanks,
Gary