Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: wire-elements/modal

0.1.6

08 Jun 12:29

Choose a tag to compare

  • Add autofocus support
  • Add option to change escape behaviour
  • Add option to emit closed event

By default, closing a modal by pressing the escape key will force close all modals. If you want to disable this behavior to, for example, allow pressing escape to show a previous modal, you can overwrite the static closeModalOnEscapeIsForceful method and have it return false.

public static function closeModalOnEscapeIsForceful(): bool
{
    return false;
}

When a modal is closed, you can optionally enable a modalClosed event to be fired. This event will be fired on a call to closeModal, when the escape button is pressed, or when you click outside the modal. The name of the closed component will be provided as a parameter;

public static function dispatchCloseEvent(): bool
{
    return true;
}

0.1.5

04 May 15:05

Choose a tag to compare

Add option to disable closing modal on click a away:

    public static function closeModalOnClickAway(): bool
    {
        return false;
    }

Change Alpine binding to prevent VueJS conflict 85acc51

0.1.4

29 Apr 14:53

Choose a tag to compare

Fixes #22

0.1.3

27 Apr 14:37

Choose a tag to compare

Configurable modal width + prevent close on escape

0.1.2

15 Apr 13:02
22e8e94

Choose a tag to compare

Allow emission of events with parameters and no target (22e8e94)

0.1.1

05 Apr 12:58
11788b3

Choose a tag to compare

Update composer.json

0.1.0

01 Apr 13:00

Choose a tag to compare

Initial commit