An overlay is a popup within the page. Technically, it is not part of the w2popup object. It is part of w2utils. However, it is descibed here
due to its functional similarity to popups. Tags and overlays are common purpose jQuery plugins and should be called in jQuery plugin syntax.
$().w2tag(html, [options])
The method will display a tag on the right from specified element. For example:
Preview
Click on this field
In w2form tags are used to display validation errors. The second parameter is optional and defines css class to be added to the element
itself (not the tag). There can be many tags on the screen at the same time. If the element is moved, the tag will move with it. If it is
destroyed, the tag will be destroyed. If you need to hide a tag, call w2tag again with empty text.
Options can be one of the following:
$().w2overlay(html, [options])
The method will display an overlay under the element. For example:
Preview
Click on this field
First parameter is the html to display inside the overlay, second is a map of options and third one is a callBack function.
If user clicks anywhere else on the screen the overlay will be hidden, which is not the same with tags. This meanes that you
can have only one overlay at a time on the screen.
Options can be one of the following: