npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

jquery-ui.dialog.extended

v1.0.3

Published

This is an extension for the jQuery UI Dialog widget that adds multiple features and enhancements: Animated resizing and positioning, use content size instead of overall size when using width and height options, multiple viewport settings to make jQuery U

Downloads

28

Readme

jQuery UI Extensions

Build Status

jQuery UI Dialog Extended

Copyright 2013-2015, Felix Nagel (http://www.felixnagel.com) Dual licensed under the MIT or GPL Version 2 licenses.

Description

This is an extension for the jQuery UI Dialog widget that adds multiple features and enhancements:

  • Animated resizing and positioning
  • Use content size instead of overall size when using width and height options
  • Multiple viewport settings to make jQuery UI Dialog more flexible and RWD compatible

Useful for custom scripts based upon jQuery UI Dialog or as base for plugins like MultiDialog

Dependencies

  • jQuery
  • jQuery UI
    • jquery.ui.core.js
    • jquery.ui.widget.js
    • jquery.ui.dialog.js

Use

Just add the jquery.ui.dialog.extended.js file. Make sure its included after jQuery UI (and Dialog).

// Use default way to call methods
$( "#dialog" ).dialog( "width", 400 );
// or use one of the added methods
$( "#dialog" ).dialog( "changeSize", 400, 200 );

This extension supports all jQuery UI Dialog options and features, including draggable and resizeable.

API Documentation

Available Options

The following options are added to the existing options of the dialog widget:

  • closeModalOnClick: true Close the dialog when the overlay is clicked.

  • forceFullscreen: false Always force the dialog to be maximized. Not ratio aware.

  • resizeOnWindowResize: false Resize the dialog when the window is resized. Useful for repsonsive websites.

  • scrollWithViewport: false Reposition the dialog when the window is scrolled. Useful for repsonsive websites.

  • resizeAccordingToViewport: true Resizes the dialog (ratio aware) to fit the viewport. Makes sure the dialog isn't bigger as the viewport. Very useful for image galleries as its guarantees the best possible image size.

  • resizeToBestPossibleSize: false Resizes the dialog (ratio aware) to fit the viewport. Something like a ratio aware fullscreen mode. This could increase the dialog size.

  • useContentSize: false Make dialog's width and height option set the content size, not overall dialog size.

  • useAnimation: true Use animation for resizing and positioning.

  • animateOptions: { duration: 500, queue: false } Animation options. See: http://api.jqueryui.com/show/ and http://api.jqueryui.com/hide/

Please note: some options work best if you add some CSS to expand your content to full available size.

Events

The following events are added to the existing events of the dialog widget:

  • resized Called when the dialog is resized.

Methods

The following methods are added to the existing methods of the dialog widget:

  • change(content, width, height, animate) html, integer, integer, boolean (optional) Changes content and size of the dialog.

  • changeSize(width, height) Changes the size and width by using _setOptions. A shortcut. Recommended when changing both values.

  • setAriaLive(busy) Helper method to change ARIA live attributes.