Home Reference Source Test Repository

Function

Static Public Summary
public

TimeSummaryLabel(state: {timeSummary: TimeSummary}): Element

TimeSummaryLabel Component

public

createTime(title: string): {spent: number, es50: number, es90: number}

Create time object from title text

Static Public

public TimeSummaryLabel(state: {timeSummary: TimeSummary}): Element source

TimeSummaryLabel Component

Params:

NameTypeAttributeDescription
state {timeSummary: TimeSummary}

state

Return:

Element

public createTime(title: string): {spent: number, es50: number, es90: number} source

import {createTime} from '5rolli-crx/src/content/helpers.js'

Create time object from title text

Params:

NameTypeAttributeDescription
title string

title text

Return:

{spent: number, es50: number, es90: number}