Home Reference Source
import NotificationBubbleViewController from '~/controllers/NotificationBubbleViewController.js'
public class | source

NotificationBubbleViewController

Extends:

ViewController → NotificationBubbleViewController

Notification bubble to click on

Constructor Summary

Public Constructor
public

constructor(bubble: Element, dropdownContainer: Element)

Method Summary

Public Methods
public

async hideCount()

Hides the count of unseen notifs

public

async showCount(count: number)

Displays the count of unseen

Inherited Summary

From class ViewController
public static

forClass(className: string, predicate: Function, root: HTMLElement)

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(bubble: Element, dropdownContainer: Element) source

Override:

ViewController#constructor

Params:

NameTypeAttributeDescription
bubble Element

The wrapper bubble

dropdownContainer Element

relative point to add dropdown

Public Methods

public async hideCount() source

Hides the count of unseen notifs

public async showCount(count: number) source

Displays the count of unseen

Params:

NameTypeAttributeDescription
count number