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

rowSpan doesn't support columns and table #2426

Closed
Shawnfoto opened this issue Apr 15, 2022 · 2 comments
Closed

rowSpan doesn't support columns and table #2426

Shawnfoto opened this issue Apr 15, 2022 · 2 comments

Comments

@Shawnfoto
Copy link

Shawnfoto commented Apr 15, 2022

var dd = {
    content: [
        {
            table: {
                headerRows:2,
                body: [
                    [{rowSpan: 2,
                         columns: [
                            {
                                  // auto-sized columns have their widths based on their content
                                  width: 'auto',
                                  stack: [{
                                    text: 'From:'    
                                  },
                                  {
                                    text: '\n\n\n'    
                                  },
                                
                                  {
                                    text: 'Contact:'    
                                },
                                {
                                    text: 'Phone:'    
                                },
                                {
                                    text: 'Email(s):'    
                                },
                                {
                                    text: '\n\n'    
                                  },
                                 
                                {
                                    text: 'Docker Name:'    
                                },
                                {
                                    text: 'Limited Access:'    
                                },
                                {
                                    text: 'Docker Open:'    
                                },
                                {
                                    text: 'Docker Close:'    
                                },
                              ],
                              
                            },
                            {
                              width: '*',
                              stack: [
                                 
                                  {text: 'Mine Site'},
                                  {text: '09:00:00'},
                                  {text: '17:00:00'},
                              ],
                              
                            },
                          ],
                    }, {text: 'Properties', colSpan: 3}, '', '', {text: 'Status', rowSpan: 2}],
                    ['', {text: 'A'}, {text: 'B'}, {text: 'C'}, ''],
                    ['Thing', 'Prop A', 'Prop B', 'Prop C', 'Free'],
                ]
            }
        },
    ],
};
@mjomble
Copy link
Contributor

mjomble commented Oct 2, 2022

The same issue was reported in #2069 with a simpler example

@fe-cj
Copy link
Contributor

fe-cj commented Aug 10, 2024

This issue has been resolved with the merge of PR #2764, and the fix is available starting from versions 0.3.0-beta.9 and 0.2.11. So we can close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants