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

Tooltips in cellRender #174

Open
bucky-badger-gesmer opened this issue May 26, 2020 · 1 comment
Open

Tooltips in cellRender #174

bucky-badger-gesmer opened this issue May 26, 2020 · 1 comment

Comments

@bucky-badger-gesmer
Copy link

Hi there, we are currently leveraging react-heatmap-grid to display a custom component with separate swim lane "heat maps." Is there a way to implement tooltips in cellRender? I wonder if there's an issue with static conversion for HTML. Is something like this possible?

<HeatMap
    background="#0598dc"
    xLabels={authenticationXLabels}
    yLabels={authenticationYLabels}
    xLabelsVisibility={authenticationXLabelsVisibility}
    yLabelWidth={120}
    data={authenticationData}
    cellStyle={this.getCellStyle}
    cellRender={() => {
        return <p className="w3-tooltip">YO<span className="w3-text w3-tag w3-small">YO!</span></p>
    }}
/>
@arunghosh
Copy link
Owner

@bucky-badger-gesmer I am not sure if I got your question correctly. For displaying tooltip use title attribute:

    cellRender={() => {
        return <p className="w3-tooltip" title="Yo! Yo!!">YO<span className="w3-text w3-tag w3-small">YO!</span></p>
    }}

If this is not answering your question, can you provide more details?

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