VulpesOS/gaia/apps/keyboard/js/views/emoji_key_view.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

32 lines
771 B
JavaScript
Executable file

'use strict';
/* global BaseView */
(function(exports) {
function EmojiKeyView() {
BaseView.apply(this, arguments);
}
EmojiKeyView.prototype = Object.create(BaseView.prototype);
EmojiKeyView.prototype.render = function() {
var contentNode = document.createElement('button');
if (this.options.classNames) {
contentNode.classList.add.apply(contentNode.classList,
this.options.classNames);
}
contentNode.classList.add('emoji');
contentNode.innerHTML = this.options.outputChar ||
this.target.value ||
this.target.compositeKey;
this.element = contentNode;
this.viewManager.registerView(this.target, this);
};
exports.EmojiKeyView = EmojiKeyView;
})(window);