@vaadin-component-factory/vcf-enhanced-dialog
TypeScript icon, indicating that this package has built-in type declarations

23.1.1 • Public • Published

<vcf-enhanced-dialog>

Gitter npm version Published on Vaadin Directory

<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.

Screenshot for Vaadin Component Factory enhanced dialog

Live demo | API documentation

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

  1. Fork the vcf-enhanced-dialog repository and clone it locally.

  2. Make sure you have npm installed.

  3. When in the vcf-enhanced-dialog directory, run npm install to install dependencies.

  4. 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

License

Apache License 2.0

Package Sidebar

Install

npm i @vaadin-component-factory/vcf-enhanced-dialog

Weekly Downloads

287

Version

23.1.1

License

https://raw.githubusercontent.com/vaadin/vaadin-incubator-element/master/LICENSE

Unpacked Size

38.8 kB

Total Files

8

Last publish

Collaborators

  • krissvaa
  • artur-
  • tatulund
  • wajtrvaadin
  • ingmartinlopez
  • paodb
  • jcgueriaud
  • vcf
  • jouni
  • onuridrisoglu