utils.BrowserTitle Class
Manage different parts of the browser title
Constructor
utils.BrowserTitle
-
options -
[props.document=window.document]
Parameters:
-
optionsObject-
trailingTitleStringTrailing part of the title which is always displayed
-
-
[props.document=window.document]String optionalDocument object where the title attribute will be set
Item Index
Methods
- activateNow
- activateNow
- activateNow
- activateOnNextTick
- activateOnNextTick
- activateOnNextTick
- getNotificationCount
- getNotificationCount
- getNotificationCount
- getTitle
- getTitle
- getTitle
- getTrailingTitle
- getTrailingTitle
- getTrailingTitle
- setNotificationCount
- setNotificationCount
- setNotificationCount
- setTitle
- setTitle
- setTitle
Methods
activateNow
()
Apply title changes immediately
activateNow
()
Apply title changes immediately
activateNow
()
Apply title changes immediately
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
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:
getNotificationCount
()
String
Get notification count string like "(3)" or empty string if the count is zero
Returns:
getNotificationCount
()
String
Get notification count string like "(3)" or empty string if the count is zero
Returns:
getTitle
()
String
Returns:
getTitle
()
String
Returns:
getTitle
()
String
Returns:
getTrailingTitle
()
String
Returns:
getTrailingTitle
()
String
Returns:
getTrailingTitle
()
String
Returns:
setNotificationCount
-
count
Notication count is displayed before the title. If count is zero it will not be displayed at all
Parameters:
-
countNumber
setNotificationCount
-
count
Notication count is displayed before the title. If count is zero it will not be displayed at all
Parameters:
-
countNumber
setNotificationCount
-
count
Notication count is displayed before the title. If count is zero it will not be displayed at all
Parameters:
-
countNumber
setTitle
-
title
Set main title to given string
Parameters:
-
titleString
setTitle
-
title
Set main title to given string
Parameters:
-
titleString
setTitle
-
title
Set main title to given string
Parameters:
-
titleString
