Sha256: 0420f3f5e49626b086d5e2486445ebb71086e3ba7b7d243891898db10b1a5f53

Contents?: true

Size: 1.18 KB

Versions: 74

Compression:

Stored size: 1.18 KB

Contents

import React from 'react'
import { DatePicker } from '../../'

const DatePickerDisabled = () => (
  <div>
    <DatePicker
        disableDate={[new Date().fp_incr(1)]}
        label="Disable Single Date"
        pickerId="single-disabled-date"
    />
    <DatePicker
        disableDate={[new Date().fp_incr(1), new Date().fp_incr(3)]}
        label="Disable Multiple Dates"
        pickerId="multiple-disabled-dates"
    />
    <DatePicker
        disableRange={[
          {
            from: new Date().fp_incr(1),
            to: new Date().fp_incr(7),
          },
        ]}
        label="Disable Single Range"
        pickerId="single-date-range"
    />
    <DatePicker
        disableRange={[
          {
            from: new Date().fp_incr(1),
            to: new Date().fp_incr(3),
          },
          {
            from: new Date().fp_incr(7),
            to: new Date().fp_incr(14),
          },
        ]}
        label="Disable Multiple Ranges"
        pickerId="multiple-date-ranges"
    />
    <DatePicker
        disableWeekdays={['Sunday', 'Saturday']}
        label="Disable Specific Weekdays"
        pickerId="disabled-weekdays"
    />
  </div>
)

export default DatePickerDisabled

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
playbook_ui-7.3.0.pre.alpha3 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.3.0.pre.alpha2 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.3.0.pre.alpha1 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.2.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.1.2 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.1.0.pre.alpha2 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.1.1.pre.alpha1 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.0.1 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.1.1 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.1.0.pre.alpha1 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.1.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.0.1.pre.alpha15 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-6.8.2.pre.alpha1 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.0.0.pre.alpha15 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.0.1.pre.alpha14 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.0.0.pre.alpha14 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.0.0.pre.alpha13 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.0.0.pre.alpha12 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.0.0 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx
playbook_ui-7.0.0.pre.alpha11 app/pb_kits/playbook/pb_date_picker/docs/_date_picker_disabled.jsx