vcf-enhanced-dialog: # <vcf-enhanced-dialog>
<vcf-enhanced-dialog> is a Web Component for creating customized modal dialogs.
This is an extension of <vaadin-dialog>
that adds the following features:
- Header and footer sections.
- Scrollable content area.
- Size themes.
Installation
Install vcf-enhanced-dialog:
npm i @vaadin-component-factory/vcf-enhanced-dialog --save
Usage
Once installed, import it in your application:
import '@vaadin-component-factory/vcf-enhanced-dialog';
Add <vcf-enhanced-dialog> element to the page. Use a <template> or renderer function to add content to the dialog.
<vcf-enhanced-dialog>
<template>
<h2 slot="header">Header</h2>
<p>...</p>
<vaadin-button slot="footer" onclick="cancel()">Cancel</vaadin-button>
</template>
</vcf-enhanced-dialog>
Running demo
-
Fork the
vcf-enhanced-dialogrepository and clone it locally. -
Make sure you have npm installed.
-
When in the
vcf-enhanced-dialogdirectory, runnpm installto install dependencies. -
Run
npm startto 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
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
License
Commercial Vaadin Add-on License version 3 (CVALv3). For license terms, see: LICENSE
Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see: Vaadin Usage Statistics