pracowniaapp2Front/src/app/right-panel/right-panel.component.ts

23 lines
1019 B
TypeScript

import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-right-panel',
templateUrl: './right-panel.component.html',
styleUrls: ['./right-panel.component.css']
})
export class RightPanelComponent implements OnInit {
emojis="😀 😁 😂 🤣 😃 😄 😅 😆 😉 😊 😋 😎 😍 😘 🥰 😗 😙 😚 ☺️ 🙂 🤗 🤩 🤔 🤨 😐 😑 😶 🙄 😏 😣 😥 😮 🤐 😯 😪 😫 😴 😌 😛 😜 😝 🤤 😒 😓 😔 😕 🙃 🤑 😲 ☹️ 🙁 😖 😞 😟 😤 😢 😭 😦 😧 😨 😩 🤯 😬 😰 😱 🥵 🥶 😳 🤪 😵 😡 😠 🤬 😷 🤒 🤕 🤢 🤮 🤧 😇 🤠 🤡 🥳 🥴 🥺 🤥 🤫 🤭 🧐 🤓 😈 👿 👹 👺 💀 👻 👽 🤖 💩 😺 😸 😹 😻 😼 😽 🙀 😿 😾"
emoji_list=[]
text="";
constructor() { }
ngOnInit() {
this.emoji_list = Array.from(this.emojis);
this.emoji_list = this.emoji_list.filter(d=>d.length>0);
}
addEmoji(emoji){
this.text+=emoji;
}
}