RallyCommunity / query-counter

MIT License
4 stars 0 forks source link

Feature request - grid display support #12

Open gmonahan opened 5 years ago

gmonahan commented 5 years ago

I'm not sure what the LOE would be to add table or minimal HTML support. Just looking for basic grid formatting, so I don't have to poor-man it with lots of horizontal whitespace in order to get things side-by-side.

gmonahan commented 4 years ago

This is a hack at best, and one that deserves a more elegant implementation, but the results are really quite nice.

I added the following code after line 196 of app.js

var new_html = tpl.html; var new_html2 = new_html.replace(/table1/g, "<table style='border: thin solid; border-collapse: collapse;'>"); new_html = new_html2.replace(/table2/g, "</table>"); new_html2 = new_html.replace(/tr1/g, "<tr style='border-left: thin solid; border-right: thin solid;'>"); new_html = new_html2.replace(/tr3/g, "<tr style='border-top: thin solid'>"); new_html2 = new_html.replace(/tr2/g, "</tr>"); new_html = new_html2.replace(/td1/g, "<td style='border-left: thin solid; border-right: thin solid; padding: 2px;'>"); new_html2 = new_html.replace(/td2/g, "</td>"); tpl.html = new_html2;

I'll attach a screenshot of what the net result is, after you add the table1, tr1, tr2, ... tokens to the HTML setting.

gmonahan commented 4 years ago

Screen Shot 2019-12-23 at 4 43 43 PM