- Notifications
You must be signed in to change notification settings - Fork1.9k
Add vertical align property#758
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Add support vertical align property (vertAlign) with possible values are superscript and subscript.Use:for entire cellfirstRow.font = { name: 'Arial', family: 2, size: 20, vertAlign: 'superscript'}rich text:worksheet.getCell('A10').value = {'richText': [{'font': {'size': 12,'color': {'theme': 1},'name': 'Calibri','family': 2,'scheme': 'minor'},'text': 'This is '},{'font': {'italic': true,'size': 12,'color': {'theme': 1},'name': 'Calibri','vertAlign': 'superscript'},'text': 'superscript'},{'font': {'size': 12,'color': {'theme': 1},'name': 'Calibri','family': 2,'scheme': 'minor'},'text': 'and '},{'font': {'italic': true,'size': 12,'color': {'theme': 1},'name': 'Calibri','vertAlign': 'subscript'},'text': 'subscript'},]};
BridgeAR left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Would you be so kind and add some tests? That would be awesome!
MikeZyatkov commentedMar 29, 2019
@BridgeAR |
wukaikailive commentedApr 21, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@guyonroche When to merge this part of the code |
Siemienik commentedApr 25, 2019
@MikeZyatkov could I please you for update Readme? |
MikeZyatkov commentedApr 26, 2019
@Siemienik done |
Uh oh!
There was an error while loading.Please reload this page.
Add support vertical align property (vertAlign) with possible values are superscript and subscript.
Related to#555
Use:
for entire cell
firstRow.font = { name: 'Arial', family: 2, size: 20, vertAlign: 'superscript'}rich text:
worksheet.getCell('A10').value = { 'richText': [ {'font': {'size': 12,'color': {'theme': 1},'name': 'Calibri','family': 2,'scheme': 'minor'},'text': 'This is '}, {'font': {'italic': true,'size': 12,'color': {'theme': 1},'name': 'Calibri','vertAlign': 'superscript'},'text': 'superscript'}, {'font': {'size': 12,'color': {'theme': 1},'name': 'Calibri','family': 2,'scheme': 'minor'},'text': 'and '}, {'font': {'italic': true,'size': 12,'color': {'theme': 1},'name': 'Calibri','vertAlign': 'subscript'},'text': 'subscript'}, ] };