Back to Website
Show / Hide Table of Contents

Class ViolationService

Package: @aurigma/design-atoms

Constructors

(constructor)(_violations, _eventManager, _productHandler)

Constructs a new instance of the ViolationService class

Declaration
constructor(_violations: Violation[], _eventManager: EventManager, _productHandler: ProductHandler);
Parameters
Type Name Description
Violation[] _violations
EventManager _eventManager
ProductHandler _productHandler

Properties

dispose

Declaration
dispose: () => void;
Property Value
Type Description
() => void

getItemInfo

Declaration
getItemInfo: (item: Item, forceUpdate?: boolean) => ITotalViolationInfo;
Property Value
Type Description
(item: Item, forceUpdate?: boolean) => ITotalViolationInfo

Methods

addItemViolationStateChanged(listener)

Declaration
addItemViolationStateChanged(listener: (value: IItemViolationStateChangedEventArgs) => void): void;
Parameters
Type Name Description
(value: IItemViolationStateChangedEventArgs) => void listener
Returns
Type Description
void

extend(violations)

Declaration
extend(violations: Violation[]): void;
Parameters
Type Name Description
Violation[] violations
Returns
Type Description
void

removeItemViolationStateChanged(listener)

Declaration
removeItemViolationStateChanged(listener: (value: IItemViolationStateChangedEventArgs) => void): void;
Parameters
Type Name Description
(value: IItemViolationStateChangedEventArgs) => void listener
Returns
Type Description
void
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback