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

Background Color #41

Closed
Jmuzu opened this issue Jan 3, 2024 · 4 comments
Closed

Background Color #41

Jmuzu opened this issue Jan 3, 2024 · 4 comments

Comments

@Jmuzu
Copy link

Jmuzu commented Jan 3, 2024

How can i change the background color of this? trying using tailwind css class but doesn't work only text colors

@cscan
Copy link
Owner

cscan commented Jan 4, 2024

Did you try cellStyle( )?

@cscan cscan closed this as completed Jan 4, 2024
@Jmuzu
Copy link
Author

Jmuzu commented Jan 4, 2024

Not yet is there an example how to do it? I can't see it in the docs. thank you.

@RonchettiAssociati
Copy link

This works for me.

In the template:

<vue-excel-editor v-if="!tokenHasOptions" class="editor" :cell-style="cellStyle" >

and then in methods:

cellStyle (content) { var cellStyleObject = { 'font-size': '24px', 'text-align': 'center', 'color': 'black' } return cellStyleObject; }

@Jmuzu
Copy link
Author

Jmuzu commented Jan 4, 2024

Will try it thank you!

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

3 participants