1.0.2 • Published 5 months ago

gooddialogs v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Dialogs

Install

npm install gooddialogs

Import single

import 'gooddialogs/dist/base.min.css';
import {goodDialogs} from 'gooddialogs';

Import and create instance

import 'gooddialogs/dist/base.min.css';
import {GoodDialogs} from 'gooddialogs';
const goodDialogs = new GoodDialogs('Message');

Use

const resDialog = await goodDialogs.confirm('Message')

With Options

const resDialog = await goodDialogs.confirm('Message', {/* Options */})

Confirm Dialog

const resDialog = await goodDialogs.confirm('Mensaje')

Option Properties

ParameterTypeExplanation
alertClassstringAdditional CSS class for the alert.
alertInstringDefines the entry animation for the alert.
alertOutstringDefines the exit animation for the alert.
cancelButtonClassstringCSS class for the cancellation button.
cancelButtonTextstringText for the cancellation button.
confirmButtonClassstringCSS class for the confirmation button.
confirmButtonTextstringText for the confirmation button.
containerClassstringCSS class for the alert container.
darkForcebooleanForces the use of the dark theme.
divIconClassstringCSS class for the icon within the alert.
footerClassstringCSS class for the alert footer.
lightForcebooleanForces the use of the light theme.
onConfirm() => voidFunction that executes when the user confirms the alert.
persistentbooleanIndicates whether the alert should remain visible until the user manually closes it.
position'top' \| 'left' \| 'right' \| 'center' \| 'top-left' \| 'top-center' \| 'top-right'Defines the position of the alert on the screen.
subtitlestring \| nullSubtitle of the alert.
themeOptionThemeTheme of the alert, defined by OptionTheme.
timernumber \| nullSets the time in milliseconds before the alert automatically closes.
titlestring \| nullTitle of the alert.
1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

8 months ago

0.5.0

9 months ago

0.5.1

9 months ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.4.4

1 year ago

0.4.1

1 year ago

0.3.2

1 year ago

0.2.3

1 year ago

0.4.0

1 year ago

0.3.1

1 year ago

0.2.2

1 year ago

0.4.3

1 year ago

0.2.5

1 year ago

0.4.2

1 year ago

0.2.4

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago