API Docs for:
Show:

utils.BrowserTitle Class

Defined in: bundle.js:53596
Module: filesize

Manage different parts of the browser title

Constructor

utils.BrowserTitle

(
  • options
  • [props.document=window.document]
)

Defined in bundle.js:53596

Parameters:

  • options Object
    • trailingTitle String

      Trailing part of the title which is always displayed

  • [props.document=window.document] String optional

    Document object where the title attribute will be set

Methods

activateNow

()

Defined in bundle.js:53698

Apply title changes immediately

activateNow

()

Apply title changes immediately

activateNow

()

Apply title changes immediately

activateOnNextTick

()

Defined in bundle.js:53682

Applies the title changes on the next tick. Avoids title hammering when called multiple times during a single stack

activateOnNextTick

()

Applies the title changes on the next tick. Avoids title hammering when called multiple times during a single stack

activateOnNextTick

()

Applies the title changes on the next tick. Avoids title hammering when called multiple times during a single stack

getNotificationCount

() String

Get notification count string like "(3)" or empty string if the count is zero

Returns:

String:

getNotificationCount

() String

Defined in bundle.js:53660

Get notification count string like "(3)" or empty string if the count is zero

Returns:

String:

getNotificationCount

() String

Get notification count string like "(3)" or empty string if the count is zero

Returns:

String:

getTitle

() String

Defined in bundle.js:53640

Returns:

String:

getTitle

() String

Returns:

String:

getTitle

() String

Returns:

String:

getTrailingTitle

() String

Returns:

String:

getTrailingTitle

() String

Defined in bundle.js:53672

Returns:

String:

getTrailingTitle

() String

Returns:

String:

setNotificationCount

(
  • count
)

Notication count is displayed before the title. If count is zero it will not be displayed at all

Parameters:

  • count Number

setNotificationCount

(
  • count
)

Defined in bundle.js:53649

Notication count is displayed before the title. If count is zero it will not be displayed at all

Parameters:

  • count Number

setNotificationCount

(
  • count
)

Notication count is displayed before the title. If count is zero it will not be displayed at all

Parameters:

  • count Number

setTitle

(
  • title
)

Defined in bundle.js:53630

Set main title to given string

Parameters:

  • title String

setTitle

(
  • title
)

Set main title to given string

Parameters:

  • title String

setTitle

(
  • title
)

Set main title to given string

Parameters:

  • title String