Stock Availability

AvailabilityUiInterface

Stock availability state UI properties.

Tags
author

Jakub Jabůrek jaburek.jakub@gmail.com

Table of Contents

Methods

getColor()  : string|null
Returns the color of the availability state.
getDescription()  : Translatable|null
Returns additional description of the availability state.
getListText()  : Translatable
Returns title of the availability state that should be displayed in stock listings.
getTitle()  : Translatable
Returns the title of the availability state.
getTooltip()  : Translatable|null
Returns text to display in a tooltip when inspecting the availability state.
isOutlined()  : bool
Indicates whether the availability pill should be outlined instead of filled.

Methods

getColor()

Returns the color of the availability state.

public getColor() : string|null
APIYes
Return values
string|null

color identifier or null if no specific color

getDescription()

Returns additional description of the availability state.

public getDescription() : Translatable|null
APIYes

The description may contain variable information, such as estimated shipment time.

Return values
Translatable|null

null if no description is available, content otherwise

getListText()

Returns title of the availability state that should be displayed in stock listings.

public getListText() : Translatable
APIYes
Return values
Translatable

state title

getTitle()

Returns the title of the availability state.

public getTitle() : Translatable
APIYes
Return values
Translatable

state title

getTooltip()

Returns text to display in a tooltip when inspecting the availability state.

public getTooltip() : Translatable|null
APIYes

The tooltip may contain variable information, such as estimated shipment time.

Return values
Translatable|null

null if no tooltip should be generated, content otherwise

isOutlined()

Indicates whether the availability pill should be outlined instead of filled.

public isOutlined() : bool
APIYes
Return values
bool

true if yes, false otherwise


        
On this page

Search results