tomivirkki / react-vaadin-components

React wrappers for Vaadin Components
https://react-vaadin-components.vercel.app/
MIT License
14 stars 6 forks source link

Accessing the selected-changed Event in Tabs? #10

Closed frastlin closed 4 years ago

frastlin commented 4 years ago

Hello, I'm trying to access the selected-changed event from the [Tabs API.}(https://vaadin.com/components/vaadin-tabs/html-api/elements/Vaadin.TabsElement)

<Tabs selected-changed={()=>alert("ran")}>

<Tabs selectedChanged={()=>alert("ran")}>

and several other combos didn't work. Do you know how I access this event? Thank you,

tomivirkki commented 4 years ago

Hi, onSelectedChanged={()=> alert("ran")} should work. The convention is mention under "Binding Events and Properties" in https://tomivirkki.github.io/react-vaadin-components/#/tutorial