BaseHeaderView
is the default implementation of a header view.
This view is specified with the following options. These can be specified as properties when extending the class or passed in as options when instantiating this class.
Property | Description | Default |
---|---|---|
label | The text to display at the top of the header | '' |
labelId | The label identifier for use with aria-labelledby |
'myModalLabel' |
labelTagName | The label tag used for modal-title element |
'h4' |
showClose | If true, shows the close icon in the top-right of the header | true |
Example:
view = new BackboneBootstrapModals.BaseHeaderView({
label: 'Fancy Modal Header',
labelId: 'myFancyModalLabel',
labelTagName: 'h4',
showClose: true
});