CloseButton

in namespace DotVVM.Framework.Controls.Bootstrap4

Renders an universal close button for modal dialogs and alerts.

Usage & Scenarios

Renders a close button for ModalDialog.

https://getbootstrap.com/docs/4.3/components/modal/

Sample 1: Close button

Close button control can be used while using custom header templates.

<bs:ModalDialog IsDisplayed="{value: Displayed}">

  <HeaderTemplate>
    Dialog header
    <bs:CloseButton/>
  </HeaderTemplate>

  <ContentTemplate>
    This is the contents of the dialog.
  </ContentTemplate>
</bs:ModalDialog>
public class ViewModel
{
    public bool Displayed { get; set; } = true;

}

Properties

Name Type Description Notes Default Value
property icon DataDismiss String Gets or sets the data-dismiss parameter of the control.
attribute
inner element
static value
bindable
default

HTML produced by the control