jQuery UI Widgets Forums Angular TypeScript Error

This topic contains 1 reply, has 1 voice, and was last updated by  Gary 6 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • TypeScript Error #95233


    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’


    TypeScript Error #95236


    I fixed my configuration problem.

    Never mind…


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.