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

Styling not working on all cells of merged cell #166

Open
Sowmiya-Pachiappan opened this issue Mar 12, 2022 · 0 comments
Open

Styling not working on all cells of merged cell #166

Sowmiya-Pachiappan opened this issue Mar 12, 2022 · 0 comments

Comments

@Sowmiya-Pachiappan
Copy link

Hi all,
I am working in react project. I am using js-xlsx for excel export. I have an issue on merged cell. I want to style merged cell like border. But When I am adding border, It is not applied to all merged cell. For example, If I have merged Cell A1:G1, When I am adding border, it only affects A1 cell,
const merge = [ { s: { r: 0, c: 0 }, e: { r: 0, c: 6 } }, { s: { r: 1, c: 0 }, e: { r: 3, c: 0 } }, { s: { r: 1, c: 1 }, e: { r: 3, c: 1 } }, { s: { r: 1, c: 2 }, e: { r: 3, c: 2 } }, { s: { r: 1, c: 3 }, e: { r: 1, c: 6 } }, ]; rateChart['!merges'] = merge;
rateChart['!merges'].s = { border: { top: { style: 'thin', color: '000000', }, left: { style: 'thin', color: '000000', }, right: { style: 'thin', color: '000000', }, bottom: { style: 'thin', color: '000000', }, }, };What I have to do for styling merged cell completely? Please Help me.

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

1 participant