ionic-team / ionic-team/ionicons

docs: document addIcons usage

Offen
#887 7 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
type: documentation
Vorherrschende Sprache
TypeScript
Sterne
18.2k
Forks
2.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Some users have expressed an interest in using functionality provided by addIcons, so it would be good to document its usage.

Use Case: https://github.com/ionic-team/ionic-framework/issues/22181 A developer wants to dynamically show an icon based upon results from a server. They could do `(result) ? heart : heartOutline`, but they do not want to have to continually import each icon. In this case, it would be helpful for them to add the icon globally via `addIcons`.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by locating the addIcons entry point and the existing Ionicons usage documentation. Document how users can register icons globally for dynamic use, including the server-driven use case described in the issue; done means the addIcons workflow is explained clearly enough to follow.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
documentation
Issue-Typ
Dokumentation
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

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