Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Popgun API #32

Open
danyaal opened this issue Aug 8, 2016 · 0 comments
Open

Popgun API #32

danyaal opened this issue Aug 8, 2016 · 0 comments

Comments

@danyaal
Copy link
Contributor

danyaal commented Aug 8, 2016

init(): void

Registers mutation observer and sets up event listeners.

registerGroup(groupId: string, groupOpts: IGroup): void

Store a group w/ options to reuse. schema is a base set of options, options attr will precedence over schema

registerSchema(schemaId: string, opts: IOptions): void

Store a schema of options

getPopFromGroupId(groupId: string): Pop

Given a group id, return a pop

getPopState(groupId: string): string

Return the state (Showing, Hidden, Pre_Hide, etc) of a pop

isPopAlreadyOpenForTarget(target: Element): boolean

Given a popgun target, return whether a pop is showing for it

isPopAlreadyOpenForGroup(groupId: string): boolean

Given a group id, return whether a pop is showing for it

reposition(groupId: string): void

Given a group id, reposition the open pop

showPop(target: Element, isPinned: boolean, trigger: string): void

Given a popgun target, manually show a pop.

hidePop(target: Element, hideFullChain: boolean): void

Given a popgun target, manually hide the open pop.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants