I am trying to build a kirby editor block where one can select a page (in the case child pages from the page “readers”). So far, my code for the pages dialog looks like this.
I now use a normal api request to get the pages, set the text and image fields of the array and then hand the array over to the dialog component. It works for my project right now, but its not a clean solution i guess. Also, because some build in dialog-functionality (searching etc.) does not work when you do it like that.