Skip to content

Resizing fontSize on state changing for createTextColumn/textColumn #220

Answered by nick-keller
flamenji asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @flamenji,
You could:

<DynamicDataSheetGrid
  style={{
    // ...
    '--font-size': fontSize,
  }}
/>

And then in your CSS:

.dsg-container {
  font-size: var(--font-size);
}

.dsg-input {
  font-size: var(--font-size);
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by nick-keller
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants