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

mwyatt-dialogue

v0.7.0

Published

Simple, light and flexible js dialogue. http://mwyatt.github.io/dialogue/

Downloads

8

Readme

Build Status

Demo

Simple, light and flexible js dialogue. http://mwyatt.github.io/dialogue/

Installation

npm install mwyatt-dialogue --save
var dialogueFactory = require('mwyatt-dialogue');
var dialogue = new dialogueFactory();

dialogue.create({
  title: 'Hello World'
});

Options

| Property | Value | | --- | --- | | title | string Gives the dialogue a title. | | description | string Gives the dialogue a description. | | hardClose | bool default: false If true, only clicking the cross in the corner will close the dialogue. | | className | string Appends the class name string to the dialogue when rendering. This allows for unique styling within specific dialogues. | | positionTo | object Pass a jquery selection here and the dialogue will be positioned to it when it opens. | | draggable | bool default: false If true, makes the dialogue draggable. | | actions | Specify any buttons required for the dialogue and the callback functions which will execute when clicked. actions: {'Name': function() {}} | | ajax | bool default: false If true, the dialogue is created with a CSS spinner in the body. The ajax request must be handled separately. | | onComplete | function Callback function, fired when dialogue has been fully rendered and positioned. | | onClose | function Fired when dialogue has been closed. | | mask | bool default: false If true, the browser view port is masked/obscured slightly. | | html | string Insert html directly into the dialogue. | | hideClose | bool default: false If true, hides the closing cross from the corner. | | width | integer Integer specifying exact pixel width for dialogue. |

Methods

Various methods can be called upon once the dialogue is created.

dialogue.close();

| Method | Action | | --- | --- | | close | Closes the dialogue and removes any events. | | setHtml | string Replaces the html area with the passed string. | | setTitle | string Replaces the title area with the passed string. | | reposition | Centers the dialogue in the viewport. | | isOpen | returns bool Returns true if the dialogue is curerntly open. |