diff options
author | Tibor Frank <tifrank@cisco.com> | 2022-04-19 07:43:31 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2022-04-19 05:45:28 +0000 |
commit | f32479a00fd731f8fa79266a1c8bae41c79f9b0d (patch) | |
tree | 95eef5ba07572cc81f7faf0ca183db5840566507 /resources/tools/dash/app | |
parent | 19fed6e3bcb7d9a1ff984f96866cf0658ddc4e3d (diff) |
feat(uti): Add c&p to offcanvas
Change-Id: I235f78d1e7fab94114958dee8aba004bee6b6b03
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/dash/app')
-rw-r--r-- | resources/tools/dash/app/pal/trending/layout.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/resources/tools/dash/app/pal/trending/layout.py b/resources/tools/dash/app/pal/trending/layout.py index 9f246d8e73..8d06ada49d 100644 --- a/resources/tools/dash/app/pal/trending/layout.py +++ b/resources/tools/dash/app/pal/trending/layout.py @@ -744,8 +744,18 @@ class Layout: metadata = [ dbc.Card( children=[ - dbc.CardHeader(title), - dbc.CardBody(children=[txt]) + dbc.CardHeader(children=[ + dcc.Clipboard( + target_id="tput-lat-metadata", + title="Copy", + style={"display": "inline-block"} + ), + title + ]), + dbc.CardBody( + id="tput-lat-metadata", + children=[txt] + ) ] ) ] |