Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Dialog behavior: Create a page layout for ui-dialog using same markup from a ui-page #20

Closed
scottjehl opened this issue Sep 15, 2010 · 0 comments

Comments

@scottjehl
Copy link

Dialogs can simply be ui-page divs with a different class applied to style them as an overlay. The link that references the dialog can just use either data-transition="pop" or "slideup"... or, we could add a data attribute like data-behavior="overlay" or something, that could use existing transitions in addition to adding the overlay class "ui-dialog" or "ui-overlay" to the loaded page.

Essentially, this would take the place of writing a dialog plugin at all.

The only logic it'd need is to decide if the page is short enough to overlay on the existing page, or if it should go to a new page for scrolling purposes.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant