All Projects → yakmada → ember-cli-mentionable

yakmada / ember-cli-mentionable

Licence: MIT license
An ember addon for facebook style @mentions and #hashtags

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to ember-cli-mentionable

Draft Js Plugins
React Plugin Architecture for Draft.js including Slack-Like Emojis, FB-Like Mentions and Stickers
Stars: ✭ 3,918 (+30038.46%)
Mutual labels:  hashtags, mentions
react-tagify
📛 Powerful Pure React Component For Hashtags and Mentions In Your React App
Stars: ✭ 24 (+84.62%)
Mutual labels:  hashtags, mentions
ngx-linkifyjs
Angular V8 wrapper for linkifyjs - library for finding links in plain text and converting them to HTML <a> tags via linkifyjs
Stars: ✭ 40 (+207.69%)
Mutual labels:  hashtags, mentions
ember-app-shell
No description or website provided.
Stars: ✭ 23 (+76.92%)
Mutual labels:  ember-cli, addon
ember-cli-dropzonejs
Drag and drop file uploader addon using dropzonejs
Stars: ✭ 32 (+146.15%)
Mutual labels:  ember-cli, addon
Ember Cli Updater
ember-cli addon to help you update your ember-cli application or addon.
Stars: ✭ 32 (+146.15%)
Mutual labels:  ember-cli, addon
Ember Cli Typescript
Use TypeScript in your Ember.js apps!
Stars: ✭ 346 (+2561.54%)
Mutual labels:  ember-cli, addon
Ember Web App
NOTICE: official repository moved to https://github.com/zonkyio/ember-web-app
Stars: ✭ 143 (+1000%)
Mutual labels:  ember-cli, addon
ember-template-inspector
An ember add-on which opens the template file in the code editor while inspecting an element.
Stars: ✭ 15 (+15.38%)
Mutual labels:  ember-cli
ember-right-click-menu
An easy and flexible addon to add context menus anywhere in your application
Stars: ✭ 14 (+7.69%)
Mutual labels:  addon
storybook-chapters
React Storybook Addon for Hierarchical Substories (Chapters)
Stars: ✭ 46 (+253.85%)
Mutual labels:  addon
ember-vertical-timeline
A Vertical Timeline for Ember.js apps 🚀
Stars: ✭ 19 (+46.15%)
Mutual labels:  addon
ember-cli-qunit
QUnit testing package for ember-cli applications
Stars: ✭ 29 (+123.08%)
Mutual labels:  ember-cli
ember-cli-amd
Ember CLI Addon for using AMD libraries
Stars: ✭ 21 (+61.54%)
Mutual labels:  ember-cli
SubstanceBridge
Blender Addons, bridge between Substance and Blender.
Stars: ✭ 33 (+153.85%)
Mutual labels:  addon
time-capsule
A WebExtension to send links to your future self
Stars: ✭ 27 (+107.69%)
Mutual labels:  addon
dash
Collection of libraries, utilities, and core Garry's Mod changes intended to improve development of addons and gamemodes
Stars: ✭ 46 (+253.85%)
Mutual labels:  addon
CitizensCMD
Add-on for Citizens that adds click commands to NPC's
Stars: ✭ 15 (+15.38%)
Mutual labels:  addon
psobbaddonplugin
Phantasy Star Online Blue Burst Addon Plugin
Stars: ✭ 17 (+30.77%)
Mutual labels:  addon
ember-cli-nouislider
{{range-slider}} component for ember-cli powered by noUiSlider
Stars: ✭ 43 (+230.77%)
Mutual labels:  ember-cli

ember-cli-mentionable

Build Status npm version Ember Observer Score

An ember-cli addon allowing facebook style @mentions and #hashtags on inputs and textareas.

demo

example screenshpt

Features

  • written entirely in ember (no bower dependencies)
  • highly configurable and override-able
  • promise-based
  • no observers

Installation

ember install ember-cli-mentionable

Usage

for examples and documentation, view the demo

<!-- template -->
{{mentionable-input config=mentionableConfig value=foo}}
// controller
mentionableConfig: {
  values: ['Johnny', 'Syd', 'Steve', 'Paul']
}

Using object chosen from an array of hashes passed

<!-- template -->
{{mentionable-input config=asyncConfig searchValues=hashMapOfItems value=item didSelectValue='didSelectValue'}}
// controller
asyncConfig: {
  searchProperty: 'name',
  values: []
},

hashMapOfItems() {
  return Ember.RSVP.Promise((resolve) => {
    resolve([{
      id: 1,
      name: 'type 1'
    }, {
      id: 2,
      name: 'type 2'
    }])
  });
},

actions: {
  didSelectValue(selected) {
    console.log(selected); // contains the object that was chosen.
  }
}

To Do

  • highlight matching string in list
  • mentionable-contenteditable
  • maxResults to display in list
  • add the searchValues method to the mentionable config, so it cab be overriden globally or per config

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

For more information on using ember-cli, visit https://ember-cli.com/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].