From 685f9deae9396813e8142b39a0695885e5a44333 Mon Sep 17 00:00:00 2001 From: Lauri Himanen Date: Wed, 16 Oct 2024 10:13:03 +0300 Subject: [PATCH] Re-introduced RowActions model. --- src/nomad_aitoolkit/apps/__init__.py | 31 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/nomad_aitoolkit/apps/__init__.py b/src/nomad_aitoolkit/apps/__init__.py index 1be3989..b72a650 100644 --- a/src/nomad_aitoolkit/apps/__init__.py +++ b/src/nomad_aitoolkit/apps/__init__.py @@ -13,10 +13,9 @@ Format, Layout, ModeEnum, + RowActions, RowActionURL, - RowDetails, Rows, - RowSelection, ScaleEnum, WidgetTerms, ) @@ -124,20 +123,20 @@ ] ), rows=Rows( - actions=[ - RowActionURL( - path=f"data.references[?kind=='hub'].uri#{schema_name}", - description='Launch Jupyter notebook', - icon='launch', - ), - RowActionURL( - path=f"data.references[?kind=='repository'].uri#{schema_name}", - description='Go to notebook repository', - icon='github', - ) - ], - details=RowDetails(enabled=True), - selection=RowSelection(enabled=True), + actions=RowActions( + items=[ + RowActionURL( + path=f"data.references[?kind=='hub'].uri#{schema_name}", + description='Launch Jupyter notebook', + icon='launch', + ), + RowActionURL( + path=f"data.references[?kind=='repository'].uri#{schema_name}", + description='Go to notebook repository', + icon='github', + ) + ] + ) ) ) )