Skip to main content

Posts

Showing posts from March, 2024

Mangento2: Knockout: add multiple events to data-bind attribute of one element

We can add multiple events to single data-bind attribute of one element using comma. Example is given below: <div data-bind =" submit: navigateToNextStep, click: callanotherFunc "></div> in this example we have added 2 events to the data-bind attribute: First is:  submit: navigateToNextStep Second is:   click: callanotherFunc