Shield
Extends:
A shield that sets itself in front of all other elements in a context if activated, hides itself if deactivated. It can get another element in front of it (Attention: it gets removed from its context temporarly)
Constructor Summary
| Public Constructor | ||
| public |
constructor(options: ShieldOptions) |
|
Member Summary
| Public Members | ||
| public |
active_: * |
|
| Private Members | ||
| private |
$context_: jQuery |
|
| private |
$element_: jQuery |
|
| private |
|
|
| private |
elementsOnTop_: Map<jQuery, ElementPosition> |
|
| private |
|
|
Method Summary
| Public Methods | ||
| public |
add$OnTop($element: jQuery, options: OnTopOptions) Gets the given element in front of the shield. |
|
| public |
get$ElementsInFront(): jQuery Returns all children in front of the shield |
|
| public |
|
|
| public |
remove$OnTop($element: jQuery): Promise Returns the given element in front of the shield to the previous context |
|
| public |
|
|
Public Constructors
public constructor(options: ShieldOptions) source
Params:
| Name | Type | Attribute | Description |
| options | ShieldOptions |
Public Members
public active_: * source
Private Members
private $context_: jQuery source
private $element_: jQuery source
private elementsOnTop_: Map<jQuery, ElementPosition> source
Public Methods
public add$OnTop($element: jQuery, options: OnTopOptions) source
Gets the given element in front of the shield. The element is removed from its context temporarily
Params:
| Name | Type | Attribute | Description |
| $element | jQuery | ||
| options | OnTopOptions |
|
public get$ElementsInFront(): jQuery source
Returns all children in front of the shield
Return:
| jQuery |
