Open helenev opened 6 years ago
I am having a problem applying a style to a text array when it's been nested.
For example, if I want to apply a style to a whole text array then I can do this as follows:
{ bold : true, text: [ 'Some bold text ', { text: 'Some bold underlined text ', decoration: 'underline' }, 'Some more bold text' ], },
However, if that array is nested it doesn't seem to apply the bold style:
{ text : [ {text: 'Some normal text '}, { bold : true, text: [ 'Some bold text ', { text: 'Some bold underlined text ', decoration: 'underline' }, 'Some more bold text ' ], } ], }
Any update? My example: content: [ { alignment: 'center', text: [ 'normal ', { bold: true, text: [ { text: 'bold ' }, { italics: true, text: ['bold and italics '] }, { text: 'bold ' } ] }, 'normal' ] } ]
content: [ { alignment: 'center', text: [ 'normal ', { bold: true, text: [ { text: 'bold ' }, { italics: true, text: ['bold and italics '] }, { text: 'bold ' } ] }, 'normal' ] } ]
I am having a problem applying a style to a text array when it's been nested.
For example, if I want to apply a style to a whole text array then I can do this as follows:
However, if that array is nested it doesn't seem to apply the bold style: