cathalnoonan / d365-pcf-imagecontrol

MIT License
11 stars 4 forks source link

Will this work for Canvas Apps too? #2

Closed RA1449 closed 4 years ago

cathalnoonan commented 4 years ago

Hi!

This hasn't been tested, so most likely it won't work

If it does work, the usability will not be so good because the dragging/dropping wouldn't work outside of the web browser

This sounds like a good idea to implement, so it will be considered for a future release

RA1449 commented 4 years ago

Can you please let me know where i can get enough knowlegde to convert a javascript solution to a PCF Control? I would love to use Alloy Editor as a control.

On Wed, Feb 5, 2020, 5:15 PM Cathal Noonan notifications@github.com wrote:

Hi!

This hasn't been tested, so most likely it won't work

If it does work, the usability will not be so good because the dragging/dropping wouldn't work outside of the web browser

This sounds like a good idea to implement, so it will be considered for a future release

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cathalnoonan/d365-pcf-imagecontrol/issues/2?email_source=notifications&email_token=ANLTFQEGGGJLASAA7USFZBTRBM3ARA5CNFSM4KQRPLJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK5F7GA#issuecomment-582639512, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANLTFQCJDQ5Y3VBIPHPOFSDRBM3ARANCNFSM4KQRPLJA .

cathalnoonan commented 4 years ago

Hi, this isn't the best place for off topic questions so I'll close this bug


A good approach would be to setup a new PCF project, add the alloyeditor package, and configure it to work with the methods in the generated index.ts file

Setting up a PCF project:

https://docs.microsoft.com/en-us/powerapps/developer/component-framework/create-custom-controls-using-pcf

Adding alloy editor:

This requires adding an npm package to the PCF project

npm i alloyeditor

Configuring to work with PCF


It's probably better to learn the parts separately, then put your learnings together afterwards:

Searching for documentation about the alloyeditor will help with the development