Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/requirement/domain/ShapeOffer

Pure (DOMAIN-001): the screen-shape offer (q-shape, ) as the card the Requirement screen draws.

Cockpit client (features), next. Source: ui/client/features/requirement/domain/ShapeOffer.ts.

Functions#

deciderOf()#

deciderOf(decision): string | null

Defined in: ui/client/features/requirement/domain/ShapeOffer.ts:16

"person" for a person; the provider for a suggestion the rules made.

Parameters#

decision

Decision | undefined

Returns#

string | null


isSourceOffer()#

isSourceOffer(id): boolean

Defined in: ui/client/features/requirement/domain/ShapeOffer.ts:22

The data source question (q-source, ) is asked once a shape is chosen, so it is a card of its own beside the shape's.

Parameters#

id

string

Returns#

boolean


offerHeading()#

offerHeading(id): string

Defined in: ui/client/features/requirement/domain/ShapeOffer.ts:37

The heading of an offer card: the shape, the data source, or a closed question of the plan.

Parameters#

id

string

Returns#

string


offerViews()#

offerViews(result): OfferView[]

Defined in: ui/client/features/requirement/domain/ShapeOffer.ts:53

Parameters#

result

ReadResult

Returns#

OfferView[]