Skip to content

Commit 0b100e6

Browse files
feat(frontend): action-table component
1 parent 3afd764 commit 0b100e6

File tree

9 files changed

+202
-0
lines changed

9 files changed

+202
-0
lines changed

helpers/frontend/views/frontend-components.njk

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,39 @@
2929
}]
3030
}) }}
3131

32+
<h2><code>action-table</code></h2>
33+
34+
{{ actionTable({
35+
caption: "Dates and amounts",
36+
firstCellIsHeader: true,
37+
head: [
38+
{
39+
text: "Name"
40+
},
41+
{
42+
text: "Age"
43+
}
44+
],
45+
rows: [
46+
[
47+
{
48+
text: "Peter"
49+
},
50+
{
51+
text: "10"
52+
}
53+
],
54+
[
55+
{
56+
text: "Paul"
57+
},
58+
{
59+
text: "12"
60+
}
61+
]
62+
]
63+
}) }}
64+
3265
<h2><code>authorize</code></h2>
3366

3467
{{ authorize({

0 commit comments

Comments
 (0)