UNPKG

react-semantic-ui-datepickers

Version:
24 lines (23 loc) 1.04 kB
/** * This is intended to be used to compose event handlers * They are executed in order until one of them calls * `event.preventDefault()`. Not sure this is the best * way to do this, but it seems legit... * @param {Function} fns the event hanlder functions * @return {Function} the event handler to add to an element */ export declare function composeEventHandlers(...fns: any[]): (event: any, ...args: any[]) => boolean; /** * Create an event handler for keyboard key given a config map * of event handlers * @param {Object} config consists of left, right, up, and down * @return {Function} the event handler to handle keyboard key */ export declare function getArrowKeyHandlers(config: any): (event: any) => void; /** * Checks if a given date is with date range * @param {Array} range the range array with upper and lower bound * @param {Date} date a given date * @return {Boolean} true if date is in the range, false otherwise */ export declare function isInRange(range: any, date: any): boolean;