From 2669d795fe8179179f026c0a8a0070cdf6ba2d4c Mon Sep 17 00:00:00 2001 From: Tanase Comboeanu Date: Fri, 5 Nov 2021 09:02:20 +0200 Subject: [PATCH] feat(tags): Add properties to tags so it can render in tables --- docs/src/xhtml/components/table/extras.xhtml | 68 ++++++++++++++++++++ src/runtime/edbml/functions/ts.ui.tag.edbml | 7 +- 2 files changed, 72 insertions(+), 3 deletions(-) diff --git a/docs/src/xhtml/components/table/extras.xhtml b/docs/src/xhtml/components/table/extras.xhtml index 09b7c0397..82ca23361 100644 --- a/docs/src/xhtml/components/table/extras.xhtml +++ b/docs/src/xhtml/components/table/extras.xhtml @@ -44,6 +44,13 @@ src: src }; } + function gettag(data, type) { + return { + item: 'Tag', + data, + type + }; + } @@ -63,6 +70,7 @@
  • Image
  • Switch
  • UserImage
  • +
  • Tag
  • @@ -479,6 +487,66 @@ + +
    +

    Tag

    +

    + This function returns the JSON to generate a Tag +

    +
    + +
    + +

    Here are the properties of the Tag.

    +
    + +
    +
    diff --git a/src/runtime/edbml/functions/ts.ui.tag.edbml b/src/runtime/edbml/functions/ts.ui.tag.edbml index fdad27179..fed47dbce 100644 --- a/src/runtime/edbml/functions/ts.ui.tag.edbml +++ b/src/runtime/edbml/functions/ts.ui.tag.edbml @@ -1,7 +1,8 @@