Version: 2.0 |

CloseButton

in namespace DotVVM.Framework.Controls.Bootstrap4

Renders an universal close button for modal dialogs and alerts.

Properties

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

Events

Name Type Description

Usage & Scenarios

Renders a close button for ModalDialog.

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

HTML Rendered by the Control

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;

}

Suggestions


Help & Contribute

The documentation is maintained on GitHub.
We'll be happy if you edit the page and create a pull request.

Send message