rimmel
Version:
A Streams-Oriented UI library for the Rx.Observable Universe
17 lines (14 loc) • 602 B
JavaScript
import { map } from 'rxjs';
import { inputPipe } from '../utils/input-pipe.js';
/**
* An Event Source Operator emitting the checked state of the underlying checkbox element instead of a regular DOM Event object
* @returns OperatorFunction<Event, boolean>
*/
const checkedState = map((e) => e.target.checked);
/**
* An Event Source emitting the checked state of the underlying checkbox element instead of a regular DOM Event object
* @returns EventSource<boolean>
*/
const CheckedState = inputPipe(checkedState);
export { CheckedState, checkedState };
//# sourceMappingURL=checked-source.js.map