How to highlight selected custom filter button in Navigator? How to use the Choice field in a custom view?
App Development4 posts340 views2 likesLast activity Sep 2021
GY
gyorgybalazsiOP
Sep 2021MA
Mate_Varga
Sep 2021We do not recommend this level of customization of the Navigator, as it is only intended to be a visual aid during the development process. For a customized UI, you should really use the JavaScript Client Libraries
That said with the following modifications on the code I could achieve both:
diff --git a/navigator/frontend/src/applets/customview/index.tsx b/navigator/frontend/src/applets/customview/index.tsx
index 644a2337fe..07505408dc 100644
--- a/navigator/frontend/src/applets/customview/index.tsx
+++ b/navigator/frontend/src/applets/customview/index.tsx
@@ -198,7 +198,7 @@ function createColumns(config: ConfigType, viewId: string)
route={Routes.contract}
- params={{id: encodeURIComponent(id), name}}
+ params={{id: encodeURIComponent(id), choice:name}}
>
diff --git a/navigator/frontend/src/components/Frame.tsx b/navigator/frontend/src/components/Frame.tsx
index db850ead0b..8ca953d88e 100644
--- a/navigator/frontend/src/components/Frame.tsx
+++ b/navigator/frontend/src/components/Frame.tsx
@@ -74,7 +74,7 @@ const Frame: React.FC<FrameProps> = ({
title={title}
- isActive={false}
+ isActive={activeRoute === Routes.customView && window.location.pathname.split("/")[2] === id}
route={Routes.customView}
The choices button you can include in your custom views by defining a column like:
{
key: "choices",
title: "Lehetőségek",
createCell: ({rowData}) => ({
type: "choices-button"
})
}
MA
Mate_Varga
Sep 2021@gyorgybalazsi We’ve merged the changes to fix the highlight issue:
github.com/digital-asset/damlNavigator customviews highlight and choices button, apply custom theme on the login screen
digital-asset:main ← digital-asset:navigator-customviews-highlight-and-choices-button
These 3 lines fix the following minor aesthetic issues in the Navigator: 1. W…
GY
gyorgybalazsi
Sep 2021Thank you!

