I wanted to have a look at the PopupService exposed by the Component Framework. I'm thinking it will be something like of a modal appears whenever the openPopup is invoke which is in my case on a click of a button.
Here's a snippet of my code:
Solved! Go to Solution.
Hi JoCas,
Apologies for the confusion around this.
Your issue should be fixed if you update your code to look like this:
We will be updating our documentation to include this property, as it is required for the popup support in preview.
Hope this helps
Hi,
Does this issue occur in the test harness or on CDS itself? Thanks.
Hi!
It occurs on both harness and cds.
It throws the error Uncaught TypeError: Cannot read property 'display' of undefined
Hi JoCas,
If you don't mind, can you please share a zip of the pcf project with me? We will try to investigate into this issue. Thanks! (I don't need the solution zip, just the pcf project).
Hi JoCas,
Apologies for the confusion around this.
Your issue should be fixed if you update your code to look like this:
We will be updating our documentation to include this property, as it is required for the popup support in preview.
Hope this helps
Thanks Jolake! It worked! I added popupStyle as one of the properties of Popup in ComponentFramework ts definition as it won't compile.
Please share me the ControlManifest.Input and index.ts files which are working as expected.We are getting issue when we are adding the
If you want typescript to compile it, you can write it as follows:
const popup = { name: "testPopup", type: 1, content: popupContent, popupStyle: {} } as ComponentFramework.FactoryApi.Popup.Popup;
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
5 | |
2 | |
2 | |
2 | |
1 |