Comments (4)
yeah i think you pass that to [emoji]
need to update doc
from ngx-emoji-mart.
To [emoji]
??
I thought I the emoji parameter takes an emoji id
, colon
emoji name or an emoji object
.
Context: I use the emoji picker (mart) to pick an emoji (in this case a custom one) and send the id to server (to store it in my database).
Now on the other end of things, I want to be able to display that custom emoji. (What I get from the server is the id.)
Currently if I provide the custom emoji id to the ngx-emoji tag as the emoji parameter, no emoji gets displayed (which I can understand since it does not "know" what to do with the custom id.
The docs actually did make sense to me. With <ngx-emoji emoji="mycustomid" [custom]="customEmojis"></ngx-emoji>
I thought the id would tell which one to use and the custom parameter would inform the component of what custom data to include in the data set.
Another solution idea that I find suitable was to make it possible to provide a way for the EmojiService to add custom emojis. In that case, both the mart and emoji component could find and use the custom emojis and I would only need to provide and setup my custom data once. How about that? I tried to "hack" into the service but failed since the uncompression of the data seems to take place beforehand and I did not find a method to mount my custom emojis.
Anyway I would appreciate guidance on how to make my use case of "picking and displaying a custom emoji" work.
Thanks for the quick reply btw. :)
from ngx-emoji-mart.
emoji object
is what you're passing to [emoji]
where the object is your custom emoji. currently the service doesn't support adding custom emojis.
from ngx-emoji-mart.
I have a python backend where I save the emoji ids not the full objects (which also makes more sense to me). Given such a custom emoji id I would like to display the emoji. Why id the custom option gone? It did make a lot of sense to me, just like it works with the mart (picker).
from ngx-emoji-mart.
Related Issues (20)
- How to get newer unicode for older version? HOT 2
- custom searching keyword (i18n)
- Angular Unit Tests failing due to the missing main entry point
- Visual emoji and emoji name mismatch HOT 6
- Switch to jsdelivr cdn - Couldn't find the requested file /img/apple/64/64.png in emoji-datasource-apple. HOT 5
- Many errors after update from ver 7.1.0 to ver 9.x HOT 1
- Update from version 3.1.0 to 6.2.0 cause malformed images on emoji lists HOT 8
- Incognito localStorage access
- Property '"x"' is incompatible with index signature. Type 'x' is not assignable to type 'string'.
- Title not being rendered
- l
- fetching this issu in angular 16.1.6 HOT 3
- Showing the wrong emojis HOT 1
- Angular version 9 is not compatible with 3.1 now HOT 5
- Nagular 9 cant import component ,
- implement in angular 15 and raise issue to import picker component
- Search with native emoji not working like in emoji-mart by missive HOT 2
- Can i implement a complete custom emoji set other then google apple etc? E.g. emojitwo HOT 1
- Some emojis do not display properly HOT 1
- Filtered emojis can also be searched
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-emoji-mart.