up.layer up.popup.attach(anchor, [options])
JavaScript function

This feature has been deprecated. Use up.layer.open({ origin, mode: 'popup' }) instead.

Load unpoly-migrate.js to polyfill deprecated features.

Attaches a popup overlay to the given element or selector.


Parameters

anchor
required

The element to which the popup will be attached.

Type: Element | jQuery | string
[options]
optional

See options for up.render().

Type: Object

Return value

Type: Promise