Skip to content

Commit

Permalink
Added more argument in show
Browse files Browse the repository at this point in the history
  • Loading branch information
Arpita-Jaiswal committed Oct 6, 2023
1 parent 6b66aac commit d48da63
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions qr-code.ftd
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
-- import: fastn-stack.github.io/fastn-js/assets


-- ftd.column:
spacing.fixed.px: 40

-- show: https://fastn.com
id: fastn
color: $ow
bg-color: $yb
level: 100


-- show: https://fastn.com
id: fastn-1


-- end: ftd.column




-- component show:
caption url:
Expand All @@ -21,9 +33,6 @@ optional integer level:
-- ftd.column:
id: $show.id

/-- ftd.image:
src: $qrCode(id = $show.id, url = $show.url)

-- ftd.image:
src: $qr-code-generate(id = $show.id, url = $show.url, width = $show.width, height = $show.height, color = $show.color, bgcolor = $show.bg-color, darkmode = $ftd.dark-mode, level = $show.level)

Expand All @@ -39,6 +48,17 @@ src: $qr-code-generate(id = $show.id, url = $show.url, width = $show.width, heig














-- ftd.image-src qrCode(id):
string id:
string url:
Expand Down

0 comments on commit d48da63

Please sign in to comment.