Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: this.props.renderDateCell is not a function #61

Open
LikeWho54 opened this issue Aug 31, 2022 · 1 comment
Open

TypeError: this.props.renderDateCell is not a function #61

LikeWho54 opened this issue Aug 31, 2022 · 1 comment
Assignees

Comments

@LikeWho54
Copy link

Hi!
Is there anyway to add selected days ? (i want to pull dates from the db and mark them as selected)
here is what i am trying :

        <ScheduleSelector
        selectionScheme="linear"
          startDate={startDate}
          selection={schedule}
          className={"overflow-y-auto h-96"}
          numDays={7}
          unselectedColor={'#EDF2F3'}
          selectedColor={'#5289B5'}
          dateFormat="dddd"
          hoveredColor={'#AFD8F2'}
          minTime={0}
          maxTime={24}
          onChange={handleClick}
          renderDateCell={scheduledates}
        />
      </div>

(scheduledates are the dates pulled from the db)

@bibekg
Copy link
Owner

bibekg commented Feb 26, 2023

Hi, I'm not sure I follow what you're trying to do. Are you looking to initialize the component's state with previously specified dates? If so, my response to issue #67 may be helpful.

If you're looking to do something else, could you make and share a CodeSandbox with as close to a working prototype of your use case? You can fork a sandbox from this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants