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: Inline CheckBoxes

The IsInline property allows to render checkboxes on one row.

Use the FormControlStyle property to choose between browser default theme and Bootstrap custom theme.

<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