ohayolibs
Version:
Ohayo is a set of essential modules for ohayojp.
14 lines (11 loc) • 369 B
text/typescript
import { SFValue } from '../interface';
import { AtomicProperty } from './atomic.property';
export class StringProperty extends AtomicProperty {
fallbackValue(): null {
return null;
}
setValue(value: SFValue, onlySelf: boolean): void {
this._value = value == null ? '' : value;
this.updateValueAndValidity({ onlySelf, emitValueEvent: true });
}
}