DaffConfigurableProductToggleAttribute
Toggles an attribute of a particular configurable product. If the attribute type of the configurable product already has a different value than the one provided in the action, the attribute value in state will be overwritten by the value provided in the action.
import { DaffConfigurableProductToggleAttribute } from '@daffodil/product-configurable/state'
class DaffConfigurableProductToggleAttribute<<T extends DaffConfigurableProduct>> implements Action {
readonly type: DaffConfigurableProductActionTypes.ConfigurableProductToggleAttributeAction
id: T['id']
attributeId: string
attributeValue: string
}
Properties
Name | Type | Description |
---|---|---|
type | DaffConfigurableProductActionTypes.ConfigurableProductToggleAttributeAction | |
id | T['id'] | |
attributeId | string | |
attributeValue | string |