Width, in cells, required to render the column with padding included. Args: data_table: The data table where the column will be rendered. Returns: The width, in cells, required to render the column with padding included.
(self, data_table: DataTable[Any])
| 235 | auto_width: bool = False |
| 236 | |
| 237 | def get_render_width(self, data_table: DataTable[Any]) -> int: |
| 238 | """Width, in cells, required to render the column with padding included. |
| 239 | |
| 240 | Args: |
| 241 | data_table: The data table where the column will be rendered. |
| 242 | |
| 243 | Returns: |
| 244 | The width, in cells, required to render the column with padding included. |
| 245 | """ |
| 246 | return 2 * data_table.cell_padding + ( |
| 247 | self.content_width if self.auto_width else self.width |
| 248 | ) |
| 249 | |
| 250 | |
| 251 | @dataclass |
no outgoing calls