scttcper/ngx-emoji-mart

Control default selected category

BioPhoton opened this issue · 2 comments

Is there an option to initialize the picker with a selected category other than recent but keep recent?

From what I can see I could use activeCategories but it seems a bit odd to me.
I also tried to fix it by using the selected property, but this can only be used after the picker is bootstrapped.

Please let me know your thoughts.

i think activeCategories is your best bet but i haven't tried this exact scenario

activeCategories requires me to add all data (emojis) again via static array.
Also I think it is again only working after component bootstrap which is the same problem as with selected