Skip to main content

StartStop

StartStop is a set of controls for selecting a start and stop date. The shape of the options being passed in will determine whether a PlusMinus control appears to specify a duration, age, or some other value.

Options can also specify a milestoneDate which will be used to calculate a date based on the selected duration.

The StartStop component does not provide validation. However, it does provide a helper function to validate the start and stop values that can be used as an onBlur callback. The helper function is handleStartStopBlur and is exported by the StartStop component.

Result
Loading...
Live Editor

Analytics

The StartStop component is trackable through Kyber Analytics. This is the default analytics config.

export default {
value: 'StartStop',
actions: {
onStartChange: { type: 'STARTSTOP_START_CHANGE', payload: 'Change' },
onStopChange: { type: 'STARTSTOP_STOP_CHANGE', payload: 'Change' },
},
};

Props