PageBadge

com.alecdorrington.laminarcomponents.PageBadge
final class PageBadge(icon: String)

A count of what awaits the reader, shown beyond the page while it is not 0: before the page's title, in red on the tab's icon, and on an installed app's icon in the taskbar or dock.

Value parameters

icon

The URL of the page's icon, which the count is drawn over.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def show(count: Int): Unit

Shows a count.

Shows a count.

Value parameters

count

The count, none shown if 0.

Attributes