-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'AlejandroCano/CustomDrilldowns' into Cu…
…stomDrilldown # Conflicts: # Signum.React/Scripts/SearchControl/SearchControlLoaded.tsx
- Loading branch information
Showing
10 changed files
with
79 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
75c713f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presenting Custom Drilldowns
The awesome work from @mehdy-karimpour brings us a new cool feature to
UserChart
andUserQuery
: Custom Drilldowns.The idea is to be able to control the
SearchControlModal
that gets opened when you double click on aSearchControl
orChartRenderer
.Programatically
This can be done programatically by using a new event in
SearchControl
This method will be invoked when doing double click in a row, or clicking in the stacked layers icon representing a group of rows.
In UserQueries and UserCharts
More often however we want to use custom DrillDowns to
chain
a parent UserQuery (or UserChart) with the child UserQuery that could be used to show the results.The child user query needs to have
Append Filters
set.Note: This option is not new and allows a similar functionality but using the contextual menu, it also requires
showContextMenu: fop => true
at theQuerySettings
.Then, in the parent query we can add one or more Custom drilldowns.
In the (rare) case that more than one custom drill down is selected, the user will be asked what to use
The same works for UserCharts
Custom Drilldowns also works when the parent query is not grouping, but in this case the child query instead of
Append Filters
needs to setEntity Type
.Of course the new
CustomDrildowns
will be expoted / imported to XML together with the parentUserChart
/UserQuery
Remaining work
Currently both
UserQuery
andUserChart
are supported as parent query, but onlyUserQuery
is currently supported as child query.It could make sense to drill down from a
UserChat
(orUserQuery
) into a aChartModal
, but such control doesn't exist yet.Any brave dev wants to help?
Thanks Mehdy!
75c713f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It`s my pleasure. Thanks for your help 👍
75c713f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect,