Skip to content

Create Dialog Plugin #209

@PeterChaplin

Description

@PeterChaplin

Qcode-ui currently relies on the dialog plugin of jQuery-ui.
We want to move away from jQuery.

Create a plugin using pure JavaScript, that will provide all the dialog functionality we currently require.

Requirements:

  • Able to specify html contents of a dialog box - not only text.
  • Able to specify a title for the dialog box
  • Able to set up buttons with custom text and associated callback functions
  • Able to add custom classes
  • Custom "close" event callback
  • Custom "open" event callback
  • Modal (optional, disabled by default)
  • Specify width and height
  • html/css
  • Must show above qtips (possibly by setting z-index)
  • Remove on close or able to remove
  • Able to close from code
  • Specify max width and max height, along with "auto" width and height
  • Able to create dialog with autoOpen false, then open from code later
  • Movable (via drag) but centered by default
  • Resizable (via corner drag) with option to disable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions