@pilotlab/lux-attributes
Version:
A luxurious user experience framework, developed by your friends at Pilot.
22 lines (13 loc) • 608 B
text/typescript
import { Signal } from '@pilotlab/lux-signals';
import { NodeEventArgs } from '@pilotlab/lux-nodes';
import AttributeBase from './attributeBase';
export class AttributeReader {
constructor(attribute:AttributeBase<any, any, any, any>) {
this.p_attribute = attribute;
}
protected p_attribute:AttributeBase<any, any, any, any>;
get value():any { return this.p_attribute.value; }
get valuePrevious():any { return this.p_attribute.valuePrevious; }
get changed():Signal<NodeEventArgs<any>> { return this.p_attribute.changed; }
} // End class
export default AttributeReader;