a suite of UI Components for development of web apps
If you have any questions, don't hesitate to contact us at support@lidorsystems.com
Advanced User Interface Controls and Components
IntegralUI Dialog is a native web component for Angular, React and Vue that displays a modal window. In this article, you will find general information about the dialog component, including its properties, events and methods that you can use.
If you have any questions, don't hesitate to contact us at support@lidorsystems.com
In this example, when dialog is visible, user interaction with all other elements on the page is suspended, except for the dialog content. If you click on the gray area outside of the dialog, the dialog will close.
To use the Dialog component you need to do the following:
public isDialogVisible: boolean = false;
public showCloseButton: boolean = true;
showDialog(){
this.isDialogVisible = true;
}
onDialogClosed(){
this.isDialogVisible = false;
}
<div class="app-block" #application>
<div class="dlg-ovw-container">
<button (click)="showDialog()">Show Dialog</button>
<iui-dialog [closeButton]="showCloseButton" [visible]="isDialogVisible" (closed)="onDialogClosed()">
<div class="dlg-ovw-content">Add your content here</div>
</iui-dialog><br/>
</div>
<div class="dlg-ovw-control-panel">
<label><input class="prb-ovw-input-numeric" type="checkbox" [(ngModel)]="showCloseButton" /> Close Button</label>
</div>
</div>
.dlg-ovw-container
{
display: inline-block;
padding: 20px 10px;
}
.dlg-ovw-content
{
margin-top: 200px;
text-align: center;
}
.dlg-ovw-control-panel
{
display: inline-block;
padding: 20px 10px;
}
You can add custom content to the dialog consisting of HTML elements or other custom web components. The closeButton property determines the visibility of the close button, which by default is set to true.
You can use the following properties to change the appearance and behavior of the Dialog component:
Using the above properties, you can customize the Dialog component in a way best suited for your application.
Here is a list of available events:
By handling the close event in your code, you can perform addition action. For example, updating your server data, based on the dialog content.
The following public methods are available:
Using these methods, you can open/close the dialog from code.
Few CSS classes govern the appearance of the dialog. You can modify these classes with your own styles, or override the default settings using the controlStyle property.
The controlStyle property holds the names of CSS classes that you can override. You don't have to provide CSS classes for all component parts, just the ones you want to change.
dialogStyle = {
general: {
disabled: 'iui-dialog-disabled',
focused: 'iui-dialog-focused',
normal: iui-dialog',
hovered: 'iui-dialog-hovered',
selected: 'iui-dialog-selected'
}
}
IntegralUI Dialog is a web component that you can use in Angular, React and Vue. The component displays a modal window where you can add custom content consisting of HTML elements or other web components. Using different properties and events and altering the default CSS classes, you can customize the dialog appearance and behavior.
The Dialog component is part of IntegralUI Web.