mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Popup: Add a non-menu popup example
This commit is contained in:
parent
a444287642
commit
f5ee22c74a
@ -29,6 +29,8 @@
|
||||
}
|
||||
};
|
||||
|
||||
$("#members-popup").popup();
|
||||
|
||||
$("#button1").button();
|
||||
$("#menu1").menu(selected).popup();
|
||||
|
||||
@ -69,10 +71,24 @@
|
||||
padding: 0.5em;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
#members-popup {
|
||||
width: 200px; height: 150px; border: 1px solid gray; border-radius: 5px;
|
||||
box-shadow: 3px 3px 5px -1px rgba(0, 0, 0, 0.5);
|
||||
background: lightgray; background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ddd));
|
||||
font-size: 120%; text-align: center; line-height: 150px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div>
|
||||
<a href="#members-popup">Project members</a>
|
||||
<div id="members-popup" tabIndex="0">
|
||||
some form controls in here
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button id="button1">Show context menu 1</button>
|
||||
<ul id="menu1">
|
||||
<li><a href="#">Amsterdam</a></li>
|
||||
@ -85,6 +101,7 @@
|
||||
<li><a href="#">Zurich</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<div>
|
||||
<div>
|
||||
<button id="rerun">Run last action</button>
|
||||
|
Loading…
Reference in New Issue
Block a user