Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 311c211

Browse files
author
David Kucsai
committed
Update the behaviour when a nested table is used. There is now an explicit flag that should be set on a nested table, this allows the correct top border handling to occur
1 parent ddcba28 commit 311c211

34 files changed

+122
-95
lines changed

docs/iframe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,4 +345,4 @@
345345

346346

347347

348-
window['STORIES'] = [];</script><script src="runtime~main.89de9395.iframe.bundle.js"></script><script src="vendors~main.6d5afb8e.iframe.bundle.js"></script><script src="main.dfdc807a.iframe.bundle.js"></script></body></html>
348+
window['STORIES'] = [];</script><script src="runtime~main.89de9395.iframe.bundle.js"></script><script src="vendors~main.6d5afb8e.iframe.bundle.js"></script><script src="main.8468ed23.iframe.bundle.js"></script></body></html>

docs/main.8468ed23.iframe.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/main.dfdc807a.iframe.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/typedoc/classes/DataTableCell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ React.PureComponent.render
7777

7878
#### Defined in
7979

80-
[src/DataTableCell.tsx:21](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/DataTableCell.tsx#L21)
80+
[src/DataTableCell.tsx:21](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/DataTableCell.tsx#L21)

docs/typedoc/classes/Table.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ React.PureComponent.render
7575

7676
#### Defined in
7777

78-
[src/Table.tsx:34](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/Table.tsx#L34)
78+
[src/Table.tsx:40](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/Table.tsx#L40)

docs/typedoc/classes/TableBody.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ React.PureComponent.render
7777

7878
#### Defined in
7979

80-
[src/TableBody.tsx:22](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableBody.tsx#L22)
80+
[src/TableBody.tsx:23](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableBody.tsx#L23)

docs/typedoc/classes/TableCell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ React.PureComponent.render
7777

7878
#### Defined in
7979

80-
[src/TableCell.tsx:63](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableCell.tsx#L63)
80+
[src/TableCell.tsx:63](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableCell.tsx#L63)

docs/typedoc/classes/TableHeader.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ React.PureComponent.render
7777

7878
#### Defined in
7979

80-
[src/TableHeader.tsx:12](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableHeader.tsx#L12)
80+
[src/TableHeader.tsx:12](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableHeader.tsx#L12)

docs/typedoc/interfaces/DataTableCellProps.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The data associated with the cell.
3737

3838
#### Defined in
3939

40-
[src/DataTableCell.tsx:8](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/DataTableCell.tsx#L8)
40+
[src/DataTableCell.tsx:8](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/DataTableCell.tsx#L8)
4141

4242
___
4343

@@ -53,7 +53,7 @@ The font-size to apply to the cell.
5353

5454
#### Defined in
5555

56-
[src/TableCell.tsx:56](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableCell.tsx#L56)
56+
[src/TableCell.tsx:56](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableCell.tsx#L56)
5757

5858
___
5959

@@ -69,7 +69,7 @@ Include the bottom border. Default true.
6969

7070
#### Defined in
7171

72-
[src/TableCell.tsx:23](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableCell.tsx#L23)
72+
[src/TableCell.tsx:23](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableCell.tsx#L23)
7373

7474
___
7575

@@ -85,7 +85,7 @@ Include the left border. Default true.
8585

8686
#### Defined in
8787

88-
[src/TableCell.tsx:28](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableCell.tsx#L28)
88+
[src/TableCell.tsx:28](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableCell.tsx#L28)
8989

9090
___
9191

@@ -101,7 +101,7 @@ Include the right border. Default true.
101101

102102
#### Defined in
103103

104-
[src/TableCell.tsx:18](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableCell.tsx#L18)
104+
[src/TableCell.tsx:18](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableCell.tsx#L18)
105105

106106
___
107107

@@ -117,7 +117,7 @@ Include the top border. Default true.
117117

118118
#### Defined in
119119

120-
[src/TableCell.tsx:13](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableCell.tsx#L13)
120+
[src/TableCell.tsx:13](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableCell.tsx#L13)
121121

122122
___
123123

@@ -133,7 +133,7 @@ Whether this is a header cell or not. If not defined it will be false.
133133

134134
#### Defined in
135135

136-
[src/TableCell.tsx:51](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableCell.tsx#L51)
136+
[src/TableCell.tsx:51](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableCell.tsx#L51)
137137

138138
___
139139

@@ -149,7 +149,7 @@ Extra styling to apply. These will override existing style with the same key.
149149

150150
#### Defined in
151151

152-
[src/TableCell.tsx:41](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableCell.tsx#L41)
152+
[src/TableCell.tsx:41](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableCell.tsx#L41)
153153

154154
___
155155

@@ -165,7 +165,7 @@ How to align the text
165165

166166
#### Defined in
167167

168-
[src/TableCell.tsx:46](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableCell.tsx#L46)
168+
[src/TableCell.tsx:46](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableCell.tsx#L46)
169169

170170
___
171171

@@ -182,7 +182,7 @@ This value is between 0..1, if not specified 1 is assumed, this will take up the
182182

183183
#### Defined in
184184

185-
[src/TableCell.tsx:36](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableCell.tsx#L36)
185+
[src/TableCell.tsx:36](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableCell.tsx#L36)
186186

187187
## Methods
188188

@@ -204,4 +204,4 @@ The content to display for this cell.
204204

205205
#### Defined in
206206

207-
[src/DataTableCell.tsx:14](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/DataTableCell.tsx#L14)
207+
[src/DataTableCell.tsx:14](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/DataTableCell.tsx#L14)

docs/typedoc/interfaces/TableBodyProps.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ TableRowProps.data
4141

4242
#### Defined in
4343

44-
[src/TableBody.tsx:10](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableBody.tsx#L10)
44+
[src/TableBody.tsx:10](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableBody.tsx#L10)
4545

4646
___
4747

@@ -57,7 +57,7 @@ TableRowProps.even
5757

5858
#### Defined in
5959

60-
[src/TableRow.tsx:32](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableRow.tsx#L32)
60+
[src/TableRow.tsx:32](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableRow.tsx#L32)
6161

6262
___
6363

@@ -73,7 +73,7 @@ TableRowProps.evenRowColor
7373

7474
#### Defined in
7575

76-
[src/TableRow.tsx:37](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableRow.tsx#L37)
76+
[src/TableRow.tsx:37](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableRow.tsx#L37)
7777

7878
___
7979

@@ -89,7 +89,7 @@ TableRowProps.fontSize
8989

9090
#### Defined in
9191

92-
[src/TableRow.tsx:12](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableRow.tsx#L12)
92+
[src/TableRow.tsx:12](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableRow.tsx#L12)
9393

9494
___
9595

@@ -105,7 +105,7 @@ TableRowProps.includeBottomBorder
105105

106106
#### Defined in
107107

108-
[src/TableCell.tsx:23](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableCell.tsx#L23)
108+
[src/TableCell.tsx:23](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableCell.tsx#L23)
109109

110110
___
111111

@@ -121,7 +121,7 @@ TableRowProps.includeLeftBorder
121121

122122
#### Defined in
123123

124-
[src/TableCell.tsx:28](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableCell.tsx#L28)
124+
[src/TableCell.tsx:28](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableCell.tsx#L28)
125125

126126
___
127127

@@ -137,7 +137,7 @@ TableRowProps.includeRightBorder
137137

138138
#### Defined in
139139

140-
[src/TableCell.tsx:18](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableCell.tsx#L18)
140+
[src/TableCell.tsx:18](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableCell.tsx#L18)
141141

142142
___
143143

@@ -153,7 +153,7 @@ TableRowProps.includeTopBorder
153153

154154
#### Defined in
155155

156-
[src/TableCell.tsx:13](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableCell.tsx#L13)
156+
[src/TableCell.tsx:13](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableCell.tsx#L13)
157157

158158
___
159159

@@ -169,17 +169,20 @@ TableRowProps.oddRowColor
169169

170170
#### Defined in
171171

172-
[src/TableRow.tsx:42](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableRow.tsx#L42)
172+
[src/TableRow.tsx:42](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableRow.tsx#L42)
173173

174174
___
175175

176176
### renderTopBorder
177177

178178
`Optional` **renderTopBorder**: `boolean`
179179

180+
Allows control of the very top border of the TableBody to be toggled on and off
181+
if there is no header.
182+
180183
#### Defined in
181184

182-
[src/TableBody.tsx:15](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableBody.tsx#L15)
185+
[src/TableBody.tsx:16](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableBody.tsx#L16)
183186

184187
___
185188

@@ -195,7 +198,7 @@ TableRowProps.textAlign
195198

196199
#### Defined in
197200

198-
[src/TableRow.tsx:17](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableRow.tsx#L17)
201+
[src/TableRow.tsx:17](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableRow.tsx#L17)
199202

200203
___
201204

@@ -211,4 +214,4 @@ TableRowProps.zebra
211214

212215
#### Defined in
213216

214-
[src/TableRow.tsx:27](https://github.com/dmk99/react-pdf-table/blob/bebcafb/src/TableRow.tsx#L27)
217+
[src/TableRow.tsx:27](https://github.com/dmk99/react-pdf-table/blob/ddcba28/src/TableRow.tsx#L27)

0 commit comments

Comments
 (0)