bitovi / bitovi/canui

can.ui.Modal API

Open
#5 9 comments 0 reactions 1 assignee Claimed by @retro View on GitHub
Dominant language
JavaScript
Stars
28
Forks
23
PR merge metrics
No merged PRs in 30d

Description

## Purpose
- positions content in an area within some element / frame
## Learn from
- http://jqueryui.com/demos/dialog/
-
## Options
- enabled / disabled - what would this do?
- autoShow - show right away (defaults to true), but allows you to call show / hide later.
- hideOnEscape
- hide - effect to use, can be a function
- show - effect to use, can be a function
- modal / block - adds a block behind it
- position - (should work with positionable)
- of - which element the modal is added to
- zIndex
## Events
- show / hide (probably preventable with preventDefault)
## Methods
- show / hide
- moveToTop
## Theming
- overlayClass?
## Examples
### show how to close w/ buttons
### show how to drag
### show how to make stacked modals
### prevent close via async events ...
## Notes
- esc to hide the overlay?
- open / close vs show / hide

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.