import MoneySpanSet from '@eastsideco/escshopify/src/plugins/easycurrency/MoneySpanSet.js'
MoneySpanSet
Represents a unique set of MoneySpan objects.
Constructor Summary
Public Constructor | ||
public |
Create an empty MoneySpanSet. |
Member Summary
Private Members | ||
private |
_allSpans: *[] |
|
private |
|
Method Summary
Public Methods | ||
public |
Add a new span to the set. |
|
public |
findByElement(element: type): undefined | MoneySpan Find a span by the element it renders to. |
|
public |
Returns a list of all the spans in the set. |
Public Constructors
Private Members
private _allSpans: *[] source
Public Methods
public add(moneySpan: MoneySpan) source
Add a new span to the set.
Params:
Name | Type | Attribute | Description |
moneySpan | MoneySpan | Span to add |