Skip to content

Commit

Permalink
updated example
Browse files Browse the repository at this point in the history
This shows the use of the `displayFields` to filter the fields in the table

Signed-off-by: Erik Jan de Wit <[email protected]>
  • Loading branch information
edewit authored and mposolda committed Nov 15, 2024
1 parent 6f84e68 commit 24b26f4
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
import org.keycloak.services.ui.extend.UiPageProvider;
import org.keycloak.services.ui.extend.UiPageProviderFactory;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
* Implements UiPageProvider so it will be a master detail view in the admin ui of TODO items
Expand Down Expand Up @@ -73,4 +75,11 @@ public List<ProviderConfigProperty> getConfigProperties() {
.options("critical", "high priority", "neutral", "low priority", "unknown")
.add().build();
}

@Override
public Map<String, Object> getTypeMetadata() {
Map<String, Object> metaData = new HashMap<>();
metaData.put("displayFields", List.of("name", "prio"));
return metaData;
}
}

0 comments on commit 24b26f4

Please sign in to comment.