Looking at building some chat function within a project. One thing that has been asked for by not really sure if possible... Use of emoji and / or ability to @mention like function in text area.
Anyone done this within ignition? or any ideas or examples?
While we haven't implemented any sort of @ mention function, we do have a popup in one of our projects that allows the user to leave notes for other users on site.
It consists of a table and when they insert a new note it includes a timestamp, user name, and their note. It then sorts it with the newest at the top. You can save the information for this table to a db or a dataset memory tag.
You are also able to add in emojis if the user wants to copy paste them. I pasted some in from the emoji keyboard in my screenshot
We aren't saving any of the emojis in the project itself, but it can be added in the input text field/label we have next to the add note button and then submitted and displays as the emoji in the saved dataset being shown on the table.
A couple ways we have added them:
On windows 10 machines you can hit Windows button + . to open an emoji keyboard to use to add an emoji to your text string. I'm not sure if it's available on other windows versions or mac/linux though.
You can also just copy/paste an emoji from elsewhere into the text field/label.
If you really wanted, you could have some secondary page or scrolled list of emojis as a dropdown component for the user to copy/paste on the same page as the chatlog or table.
I also tested it on an apple mobile device and you can input emojis that way as well using the built in emoji keyboard.
I would like to know about emoji's, Does it works well when we open the clients in Linux system, as we have client cpu devices connected to large monitors.
I can't see a reason why it wouldn't? I assume that the emojis are being rendered as unicode text, so as long as you are using a browser from the last decade, it should display correctly.