Typings change in last Webix version?

Did the Typescript typings change between version 8.0.1 to 8.2.0?

I used to be able to do this:

          {
            view: 'search',
            placeholder: 'Search...',
            icon: 'mdi mdi-close',
            on: {
              onSearchIconClick: function () {
                this.setValue('')
                this.blur()
            }
          }

But now with 8.2.0 it complains that setValue does not exist there. The code still works though.

Tagged:

Comments

  • edited March 26

    Hello @Christiaan,

    Did the Typescript typings change between version 8.0.1 to 8.2.0?

    Indeed, type definitions were updated with the release of Webix 8.2. The updated type definitions now include the new API for the existing widgets, as well as typings for the recently released complex widgets.

    Besides that, there were no other major changes within the type definitions. Notably, I don't see any related changes that might've led to the error you are getting (setValue() method is defined within the webix.ui.search class the same way it was defined in the old typings).

    Could you please provide the exact error you are getting? Does it read Property 'setValue' does not exist on type 'baseview', or is it referring to a different type?

  • This is the full error: Property 'setValue' does not exist on type '{ onSearchIconClick: () => void; onTimedKeyPress: () => void; }'

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!