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

Offen
#538 9 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@Tatsiana8 arbeitet bereits daran.

Seit 31.7.2024.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
706
Forks
493
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus formio/angular

Alle Issues in formio/angular

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.