Skip to content

How to allow cells to have multi-line text? #374

Closed

Description

@rau

Hey, currently trying to make my cells work with multi-line text (i.e. respect whitespace pre-wrap).

I can't figure out how to do that. Here's the code I'm trying, but it's not working.

Is there a prop I can enable on the spreadsheet component that allows my cells to have multi-line text?

<Spreadsheet
  data={data}
  onChange={handleDataChange}
  onBlur={handleBlur}
  columnLabels={columnLabels}
  className='!whitespace-pre'
  hideRowIndicators={true}
/>

Activity

  1. wenerme commented on Feb 29, 2024

    @wenerme

    juse include \n if you dont change the viewer

  2. Repository owner locked and limited conversation to collaborators on Mar 2, 2024
  3. converted this issue into a discussion #382 on Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions