Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - grid display support #12

Open
gmonahan opened this issue Feb 25, 2019 · 2 comments
Open

Feature request - grid display support #12

gmonahan opened this issue Feb 25, 2019 · 2 comments

Comments

@gmonahan
Copy link

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
Copy link
Author

gmonahan commented Dec 23, 2019

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant