Lime Web Components API Documentation - v7.4.0
    Preparing search index...

    Type Alias DialogProperties

    DialogProperties: Record<string, unknown>

    Properties to pass to a dialog component

    An object mapping property names to values. These will be set as properties on the dialog's web component instance when the dialog is created or updated.

    import {
    DialogProperties,
    PlatformServiceName,
    } from '@limetech/lime-web-components';

    const properties: DialogProperties = {
    userId: 123,
    mode: 'edit',
    allowDelete: true,
    fields: ['name', 'email', 'phone'],
    };

    const dialogRenderer = platform.get(PlatformServiceName.Dialog);

    dialogRenderer.create('user-form-dialog', properties);