@pilotlab/lux-attributes
Version:
A luxurious user experience framework, developed by your friends at Pilot.
25 lines (19 loc) • 872 B
text/typescript
import { NodeChangeType, NodeEventArgs } from '@pilotlab/lux-nodes';
import { IPromise } from '@pilotlab/lux-result';
import IAttribute from './interfaces/iAttribute';
import IAttributeChangeOptions from './interfaces/iAttributeChangeOptions';
import AttributeChangeOptions from './attributeChangeOptions';
export class AttributeEventArgs<TNode extends IAttribute> extends NodeEventArgs<TNode> {
constructor(
attribute:TNode,
changeType:NodeChangeType,
changeOptions:IAttributeChangeOptions = AttributeChangeOptions.default,
result?:IPromise<any>,
isMultipleNodeChange:boolean = false
) {
super(attribute, changeType, changeOptions, result, isMultipleNodeChange);
}
get attribute():TNode { return this.node; }
changeOptions:IAttributeChangeOptions;
} // End class
export default AttributeEventArgs;