Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

DateRangePicker start and end date in one Textfeild material ui

<DateRangePicker
     renderInput={({ inputProps, ...startProps }, endProps) => {
          const startValue = inputProps.value;
          delete inputProps.value
          return (
            <TextField
              {...startProps}
              inputProps={inputProps}
              value={`${startValue}-${endProps.inputProps.value}`}
           />
)}/>

Source by github.com #
 
PREVIOUS NEXT
Tagged: #DateRangePicker #start #date #Textfeild #material #ui
ADD COMMENT
Topic
Name
8+4 =