Skip to content

frkd-dev/simpledialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Simple Dialog

A Simple Dialog window using VanillaJS.

Features

  • Dragging
  • Folding
  • Closing
  • Fixed size
  • Auto centering (optional)
  • Scrollable

Example with default values:

let dlg = SimpleDialog({
  title: 'Dialog', // string or element
  content: 'Lorem ipsum dolor...', // string or element
  x: null, y: null, // null for centering
  width: 300, height: 200,
  close: true, // Show close button
  minmax: true, // Show min/max button
  minimized: false, // Create minimized dialog
  parent: d.body, // Parent element to host a dialog
  onclose: null // callback on closing
});

About

Simple Dialog on VanillaJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published