Package Exports
- @vks-dev/jquery-dialogextend
- @vks-dev/jquery-dialogextend/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@vks-dev/jquery-dialogextend) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this 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