[Custom Components] Request for Select Input example with data from external source

未關閉
#538 9 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@Tatsiana8 已經在處理了。

開始於 2024年7月31日。

評估

這個 Issue 還沒有評估資料。

描述

question scope: community scope: custom components

I've been trying to get a custom select component working with data from an outside source int othe builder with 0 success. Tried to build off of the rating component and switch some things up but trying to get data from an external source and have it useable in the builder and render has eluded me. Is there a chance we could see an example of making a custom select component? for my purposes I dont even want the user to be able to use an edit form, just want to give them the ability to drag and drop a select component into the builder that will when rendered give them a selection of users gathered by an api call.

Anything like that would be great! Ive tried a custom template, extending the forms and components etc etc, but it just doesnt seem to want to work. wither i get something sort of together but the data wont populate, or the data will populate but the component won't render.

I've not included my code because I don't really want a fix to what I am doing so much as a guide as to the proper way to create something of the like.

主要語言
TypeScript
星號
706
分支
493
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 有 Pull Request 範本
  • 沒有貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

formio/angular 的其他 Issue

查看 formio/angular 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。