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.

Improve <table> input in the comment field

See original GitHub issue

There are many ways to simplify creation of tables. This is the simplest UI I’ve seen but I’m open to suggestions. It’s only 2 clicks to add a table.

  1. Click on “add table” button (dropdown opens)
  2. Click the desired table size

UI

The grid is too big for us, but a 5x5 would be plenty. No need to get fancy with alignment options and headers; those can be more easily added by the user if desired.

Example table usage: https://github.com/sindresorhus/refined-github/issues/2874

Output would be a simplified HTML5 table markup:

<table>
	<tr>
		<td> A1
		<td> B1
	<tr>
		<td> A2
		<td> B2
</table>
A1 B1
A2 B2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
fregantecommented, Sep 25, 2020

entering numbers of columns and rows will be more efficient

No, because that requires at least 4 clicks and 2 key presses, while this is only 2 clicks (no dragging, just a click)

not restricted to any size??

Nobody needs 100 columns in a GitHub comment; rows can be trivially added by copy-pasting the result as many times as needed, if you need more than 7 rows.

Can I work on this?

You can, but please keep it as simple as possible, probably around 50 lines or less.

You can copy the DOM from the canned replies (but the dropdown content would of course be like in the very first gif):

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: How to let users write comments in straight table
Solved: Hi, QlikView community I got easy dataset but that is just for demonstration. I have users that want to see variance between...
Read more >
How to add comments to table or column in mysql using ...
How to add comments to table or column in mysql using SQLAlchemy? - Stack Overflow. Stack Overflow for Teams – Start collaborating and...
Read more >
Modify or change the data type setting for a field
Convert to this type From this type Changes or restrictions Text Memo Access deletes all but the first 255 characters. Number No restrictions. Currency No restrictions....
Read more >
Comment field - textarea · Issue #14829 - GitHub
I am talking about comment field next to each column (not the table comment you marked on that pic) but this one -...
Read more >
Issue with Additional Comments field - ServiceNow Community
Hello Folks, In our system there is a table BC which is extending TASK. ... But whenever we provide any input in the...
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