question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

set a minimum column width before overflow-linebreak

See original GitHub issue

Hello,

I’m currently using an overflow: linebreak option to produce my pdf-output. Is there a way to set a minimum column width of e.g. 10 characters before the overflow-linebreak? In case of the following table my ouput looks like this unbenannt2

Code: $(document).ready(function() { $("#btn_pdf").click(function printpdf() { var pdf = new jsPDF('p', 'pt'); var res = pdf.autoTableHtmlToJson(document.getElementById('variables')); pdf.autoTable(res.columns, res.data, { startY: 60, margin: {horizontal: 20}, styles: {overflow: 'linebreak', font: 'arial', fontSize: 10, cellPadding: 8, columnwidth: 'auto'} }); pdf.save("table.pdf"); });

Thanks, Basti

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
simonbengtssoncommented, Jan 5, 2019

minCellWidth option added in v3.0.2

0reactions
NevetsKurocommented, Dec 10, 2018
<th style="width">headers</th>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Set min-width in HTML table's <td> - css
So I tried to set min-width for those columns but it's not a valid property. Tried min-width for <td> as well but that...
Read more >
Change the column width and row height
Set a column to a specific width. Select the column or columns that you want to change. On the Home tab, in the...
Read more >
column-width - CSS: Cascading Style Sheets - MDN Web Docs
The column-width CSS property sets the ideal column width in a multi-column layout. The container will have as many columns as can fit ......
Read more >
How to set the minimum width of a column while ...
Hi,. AllowColumnResize. ="True" in the rad gird. This allows resizing the columns to any width. I want to set a minimum value to...
Read more >
Setting Minimums and Maximums when AutoFitting Column ...
Ken has a worksheet with over 100 columns of varying widths. ... there is a way to set a minimum (7) and maximum...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found