After clicking, you can see a green icon on the list page. After clicking, a Popover component will pop up
The first question is: do we need to define the Popover component six times in the list page corresponding to six different tiles?
The answer is No. We did not find a user list component in Spartacus standard code, which indicates that no matter user list or org list, it is likely to reuse a Spartacus shared control, but some tile specific features are dynamically injected at runtime.
Our conjecture is confirmed by the HTML code rendered by the Runtime: for the user list page, the component selector is CX org list, and the class is orguser
The same CX org list is used for org unit list. The difference is that the class is org unit
The template implementation of the angular component corresponding to selector CX org list is: list. Component. HTML:
(i) The layout and logic of icon and Popover component pop-up after clicking are written in this HTML file and only implemented once
More of Jerry’s original articles are: “Wang Zixi”: