vcf-enhanced-dialog - Vaadin Add-on Directory
Web Component for creating customised modal dialogs. This is an extension of the Vaadin Dialog.# <vcf-enhanced-dialog>
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/vaadin/web-components?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![npm version](https://badgen.net/npm/v/@vaadin-component-factory/vcf-enhanced-dialog)](https://www.npmjs.com/package/@vaadin-component-factory/vcf-enhanced-dialog)
[![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/vaadin-component-factoryvcf-enhanced-dialog)
`` is a Web Component for creating customized modal dialogs.
This is an extension of [``](https://vaadin.com/components/vaadin-dialog/html-api/elements/Vaadin.DialogElement)
that adds the following features:
- Header and footer sections.
- Scrollable content area.
- Size themes.
[Live demo ↗](https://vcf-enhanced-dialog.netlify.app)
|
[API documentation ↗](https://vcf-enhanced-dialog.netlify.app/api/#/elements/vcf-enhanced-dialog)
## Installation
Install `vcf-enhanced-dialog`:
```sh
npm i @vaadin-component-factory/vcf-enhanced-dialog --save
```
## Usage
Once installed, import it in your application:
```js
import '@vaadin-component-factory/vcf-enhanced-dialog';
```
Add `` element to the page. Use a `` or [renderer](https://vcf-enhanced-dialog.netlify.app/api/#/elements/vcf-enhanced-dialog#description) function to add content to the dialog.
```html
Cancel
```
## Running demo
1. Fork the `vcf-enhanced-dialog` repository and clone it locally.
1. Make sure you have [npm](https://www.npmjs.com/) installed.
1. When in the `vcf-enhanced-dialog` directory, run `npm install` to install dependencies.
1. Run `npm start` to open the demo.
## Server-side API
This is the client-side (Polymer 3) web component. If you are looking for the server-side (Java) API for the Vaadin Platform, it can be found here: [Enhanced Dialog](https://vaadin.com/directory/component/enhanced-dialog)
## Vaadin Prime
This component is available in the Vaadin Prime subscription. It is still open source, but you need to have a valid CVAL license in order to use it. Read more at: [Pricing](https://vaadin.com/pricing)
## License
Commercial Vaadin Add-on License version 3 (CVALv3). For license terms, see: [LICENSE](https://github.com/vaadin-component-factory/vcf-enhanced-dialog/blob/master/LICENSE)
Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see: [Vaadin Usage Statistics](https://github.com/vaadin/vaadin-usage-statistics)
Header
...