← Customer Feedback for LINQPad Settings and activity 2 results found Load a webpage into iframe in results window 8 votes Vote Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close 1 vote 2 votes 3 votes Remove votes You have left! (?) (thinking…) 1 comment · LINQPad Feature Suggestions · Delete… · Admin → How important is this to you? Not at all You must login first! Important You must login first! Critical You must login first! We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close Anonymous supported this idea · May 15, 2019 HTML export should contain expandable tables 14 votes Vote Vote Vote Vote We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close 1 vote 2 votes 3 votes Remove votes You have left! (?) (thinking…) 1 comment · LINQPad Feature Suggestions · Delete… · Admin → How important is this to you? Not at all You must login first! Important You must login first! Critical You must login first! We're glad you're herePlease sign in to leave feedback Signed in as (Sign out) Close Close An error occurred while saving the comment Anonymous commented · Aug 13, 2018 · Edit… · Delete… I just add a simple script like this to the bottom of the body of the exported HTML document. Maybe LINQPad could do the same? <script> const triangleUp = "\u25B2"; const triangleDown = "\u25BC"; for (const typeheader of document.getElementsByClassName("typeheader")) { const arrow = document.createElement("span"); arrow.style.cursor = "pointer"; arrow.style.marginRight = "0.2em"; arrow.innerText = triangleUp; const row = typeheader.parentNode; arrow.onclick = () => { [].slice.call(row.parentNode.childNodes, 1).forEach(e => e.style.display = (e.style.display == "none" ? "table-row" : "none")); arrow.innerText = (arrow.innerText == triangleUp ? triangleDown : triangleUp); } typeheader.prepend(arrow); } </script> Save Submitting... Anonymous supported this idea · Aug 13, 2018
I just add a simple script like this to the bottom of the body of the exported HTML document. Maybe LINQPad could do the same?
<script>
const triangleUp = "\u25B2";
const triangleDown = "\u25BC";
for (const typeheader of document.getElementsByClassName("typeheader")) {
const arrow = document.createElement("span");
arrow.style.cursor = "pointer";
arrow.style.marginRight = "0.2em";
arrow.innerText = triangleUp;
const row = typeheader.parentNode;
arrow.onclick = () => {
[].slice.call(row.parentNode.childNodes, 1).forEach(e => e.style.display = (e.style.display == "none" ? "table-row" : "none"));
arrow.innerText = (arrow.innerText == triangleUp ? triangleDown : triangleUp);
}
typeheader.prepend(arrow);
}
</script>