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

Calendar: Pass in rest of props to renderCell #3671

Open
dkang23 opened this issue Mar 14, 2024 · 3 comments
Open

Calendar: Pass in rest of props to renderCell #3671

dkang23 opened this issue Mar 14, 2024 · 3 comments

Comments

@dkang23
Copy link

dkang23 commented Mar 14, 2024

What problem does this feature solve?

Adds more customization to each cell of calender.

I'm trying to add my own tooltip to each calendar cell, but I am faced with the button title also showing

What does the proposed API look like?

@simonguo
Copy link
Member

Hi @dkang23 , I don't understand why you need to pass props to renderCell. Can you explain it with a specific example?

@dkang23
Copy link
Author

dkang23 commented Mar 16, 2024

my renderCell function is returning a cell with a custom tooltip, but the default tooltip (Button.title?) is also showing


const renderCell = (date, ...rest) => {
    const list = getTodoList(date);

    if (list.length) {
      return (
        <Tooltip...

@simonguo
Copy link
Member

my renderCell function is returning a cell with a custom tooltip, but the default tooltip (Button.title?) is also showing

Currently renderCell is rendered inside the cell and cannot reset the title. If you want to meet your application scenario, it may be a breaking change to renderCell. We will consider how to handle this issue.

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