Component in above link should do it for you and you can also easily do it with the below method as well