Composite View that implements dropdown logic similar to SELECT HTML-element.
Unlike
PopoutView, a panel doesn't have a speech bubble triangle and
it's min-width is always determined and equal to the width of a button view.
A dropdown view contains button and panel regions that can be fully customizable by the properties
buttonView and
panelView.
- Button View is used for displaying a button. Click on that button trigger a panel to open.
- Panel View is used to display a panel that drops down.
Panel width is determined by its layout but it cannot be less than the button's width. Panel height is fully determined by its layout.
A place where the panel appears depends on the
panelPosition option.
Possible events:
'open' (dropdownView) - fires after the panel has opened.
'close' (dropdownView, ...) - fires after the panel has closed.
If the panel was closed via close(...) method, the arguments of this method are transferred into this event.
'button:\*' - all events the buttonView triggers are repeated by this view with 'button:' prefix.
'panel:\*' - all events the panelView triggers are repeated by this view with 'panel:' prefix.