@vks-dev/jquery-dialogextend
v1.0.2
Published
jQuery Dialog Extend 2.0.0 - Extends jQuery UI Dialog with minimize, maximize, and collapse features - VKS package
Readme
@vks-dev/jquery-dialogextend
jQuery Dialog Extend 2.0.0 - Extends jQuery UI Dialog with additional features.
This plugin extends jQuery UI Dialog with minimize, maximize, and collapse functionality.
This is a VKS-specific package wrapping the jQuery Dialog Extend plugin.
Installation
npm install @vks-dev/jquery-dialogextendUsage
import '@vks-dev/jquery-dialogextend';
import $ from 'jquery';
import 'jquery-ui'; // Required
// Create a dialog with extended features
$('#myDialog').dialog({
// standard dialog options
}).dialogExtend({
closable: true,
dblclick: false,
titlebar: false,
icons: {
close: "ui-icon-closethick",
restore: "ui-icon-newwin"
}
});Features
- Minimize dialogs
- Maximize dialogs
- Collapse dialogs
- Customizable titlebar
- Event callbacks (load, beforeRestore, restore)
- Double-click actions
- Customizable icons
Options
closable(boolean) - Whether the dialog can be closeddblclick(string|false) - Action on double-clicktitlebar(string|false) - Titlebar style ('none', 'transparent', or false)icons(object) - Custom icons for buttonsload(function) - Callback when dialog loadsbeforeRestore(function) - Callback before restoring dialogrestore(function) - Callback after restoring dialog
Requirements
- jQuery
- jQuery UI (with Dialog widget)
License
MIT
Version
2.0.0
