Dropdown

Dropdown example that shows how to use it with LiveView to get value of the clicked option. Notice in the second example how click handler is passed as a anonymous function, component anticipates that function could be passed which will receive the clicked value as an argument. Useful when value is needed form the parent when executing some Javascript.