feat(candid-ui): default values#13
Conversation
|
Dear @ENJATZ, This repository does not accept external contributions yet. We are therefore closing this Pull Request, thank you for your understanding. — The DFINITY Foundation |
|
Dear @ENJATZ, This repository does not accept external contributions yet. We are therefore closing this Pull Request, thank you for your understanding. — The DFINITY Foundation |
krpeacock
left a comment
There was a problem hiding this comment.
Approved - just need to get CI fixed
|
Dear @ENJATZ, In order to potentially merge your code in this open-source repository and therefore proceed with your contribution, we need to have your approval on DFINITY's CLA1. If you decide to agree with it, please visit this issue and read the instructions there. — The DFINITY Foundation Footnotes
|
|
Dear @ENJATZ, In order to potentially merge your code in this open-source repository and therefore proceed with your contribution, we need to have your approval on DFINITY's CLA1. If you decide to agree with it, please visit this issue and read the instructions there. — The DFINITY Foundation Footnotes
|
Improved the candid-ui by adding props that allows the form to be pre-filled with data. This aims to achieve the desired functionality from ICDevs Bounty #50.
The candid-ui can now be rendered and passed the following props:
options:defaultValues: a stringified json which equals the same parsed data provided by the form when sending a requesthideMethodsIdl: used to hide the methods args idl (falseby default).Whenever a user fills the candid-ui with valid data, a
filledCustomEvent is being sent. In this case,event.detailcontains the parsed data of the request and can be used asdefaultValues.Also added a
.prettierrcto maintain the same code style across all files.An active implementation of this merge request can be seen in the following repository: https://github.com/ENJATZ/customer-service-dapp or at link: https://u4mx2-ziaaa-aaaap-qbgva-cai.icp0.io.
Examples of pre-filled candid-ui: