![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
angular2-emoji-picker
Advanced tools
Readme
This project was forked from the EmojiPanel project created by DanBovey
It's pretty basic right now, not very customizable but propagates necessary emoji selection events and comes with basic search and category selection functionalities.
Demo uses the sprite sheets
import { EmojiPickerModule } from 'angular2-emoji-picker';
@NgModule({
...
imports: [
EmojiPickerModule.forRoot()
],
...
})
export class AppModule {}
/** file: app.component.ts */
import { EmojiPickerOptions } from 'angular2-emoji-picker';
/** imported seperately to reduce package size for those who won't use sheets */
import { EmojiPickerAppleSheetLocator } from 'angular2-emoji-picker/sheets';
constructor(private emojiPickerOptions: EmojiPickerOptions) {
this.emojiPickerOptions.setEmojiSheet({
url: 'sheet_apple_32.png',
locator: EmojiPickerAppleSheetLocator
});
}
include the sheet_apple_32.png file in your build and provide your specific file url
/** .angular-cli.json */
{
"apps": [
{
"assets": [
{ "glob": "sheet_apple_32.png", "input": "../node_modules/angular2-emoji-picker/sheets/", "output": "./" }
]
}
]
}
/** file: any.component.ts */
import { EmojiPickerOptions } from 'angular2-emoji-picker';
constructor(private emojiPickerOptions: EmojiPickerOptions, private _el: ElementRef) {
const emojiEvent : EmojiEvent = { ... };
const emojiElement = this.emojiPickerOptions.getEmojiElement(emojiEvent);
this._el.nativeElement.appendChild(emojiElement);
}
<i
(click)="toggled = !toggled"
[(emojiPickerIf)]="toggled"
[emojiPickerDirection]="'bottom' || 'top' || 'left' || 'right'"
[emojiPickerPreserveSelection]="true || false"
[emojiPickerAutofocus]="true || false"
(emojiPickerSelect)="handleSelection($event)">😄</i>
(emojiPickerSelect)="handleSelection($event)"
$event = EmojiEvent{ char : "😌", label : "relieved" }
added for your convenience, emits information regarding a contenteditable enabled element
(emojiPickerCaretEmitter)="handleCaretChange($event)"
$event = CaretEvent{ caretOffset: 13, caretRange: Range{...}, textContent: 'content of div or input' }
Emoji Picker will get placed relative the element chosen via the directive api, centered and within window borders
npm run build:library
FAQs
Emoji picker for angular2+
The npm package angular2-emoji-picker receives a total of 35 weekly downloads. As such, angular2-emoji-picker popularity was classified as not popular.
We found that angular2-emoji-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.