HubSpot / vex

A modern dialog library which is highly configurable and easy to style. #hubspot-open-source
http://github.hubspot.com/vex/docs/welcome
MIT License
6.92k stars 494 forks source link

Options documentation #221

Closed strohhut closed 7 years ago

strohhut commented 7 years ago

I cannot find information in the documentation about all the options that can be passed to the open function like custom button settings buttons: [{type: '...', text: '...', className: '...'}].

For instance I know that there is a confirm type because I found that somewhere on jsfiddle but I don't know the other types.

bbatliner commented 7 years ago

The type option is used to set the DOM attribute type. Read more about button attributes: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button

type, text, and className are the only three button options and they're used as you expect. I added some documentation in 8a914d9, does it look good?

strohhut commented 7 years ago

Yes, thanks for adding this to the docs.