PopoverViewController
Extends:
Direct Subclass:
Controls a popover view. This has a trigger and a target. When the trigger is pressed, this displays the target.
Constructor Summary
Public Constructor | ||
public |
constructor(root: HTMLElement, trigger: HTMLElement, template: Template, untrigger: HTMLElement) Creates a popover view with a given trigger + target. |
Member Summary
Public Members | ||
public |
State is |
Method Summary
Public Methods | ||
public |
bindTrigger(trigger: string | HTMLElement) Adds a new trigger node. |
|
public |
bindUntrigger(untrigger: string | HTMLElement) Binds an untrigger node. |
|
public |
trigger() Sets into an active state |
|
public |
Sets into inactive state. |
Inherited Summary
From class ViewController | ||
public static |
Creates a view controller directly for all members of a class. |
|
public static |
of(elem: string | Element): ViewController Returns a canolical VC of an element if it exists |
Public Constructors
public constructor(root: HTMLElement, trigger: HTMLElement, template: Template, untrigger: HTMLElement) source
Creates a popover view with a given trigger + target.
Override:
ViewController#constructorParams:
Name | Type | Attribute | Description |
root | HTMLElement |
|
The root element to bind to. |
trigger | HTMLElement | binds |
|
template | Template | will display this view on trigger. |
|
untrigger | HTMLElement |
|
element to untrigger. |
Public Members
Public Methods
public bindTrigger(trigger: string | HTMLElement) source
Adds a new trigger node.
Params:
Name | Type | Attribute | Description |
trigger | string | HTMLElement | A new trigger to add |