2
0
mirror of https://github.com/tenrok/vue-tribute.git synced 2026-05-17 03:59:38 +03:00
dependabot[bot] b84e8995f3 Bump node-sass from 4.14.1 to 7.0.0
Bumps [node-sass](https://github.com/sass/node-sass) from 4.14.1 to 7.0.0.
- [Release notes](https://github.com/sass/node-sass/releases)
- [Changelog](https://github.com/sass/node-sass/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sass/node-sass/compare/v4.14.1...v7.0.0)

---
updated-dependencies:
- dependency-name: node-sass
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-10 21:02:16 +00:00
2018-03-25 14:35:33 -04:00
2018-03-25 14:35:33 -04:00
2018-03-25 14:35:33 -04:00
2020-02-09 12:39:49 +01:00
2018-03-25 14:35:33 -04:00
2022-01-24 12:55:35 -05:00

vue-tribute

Build Status

A Vue.js wrapper for Zurb's Tribute library for native @mentions.

🚦 Looking for Vue 3 support? Check out the next branch.

Install

$ yarn add vue-tribute

or

$ npm install vue-tribute --save

or include the UMD build, hosted by unpkg in a <script> tag.

<script src="//unpkg.com/vue-tribute" />

Usage

Import and register the component.

import VueTribute from 'vue-tribute'

export default {
  ...
  components: {
    VueTribute
  }
}

In your template, wrap an input, textarea or contenteditable element in the vue-tribute component, and pass your Tribute options in.

<div>
  <vue-tribute :options="tributeOptions">
    <input type="text" placeholder="@..." />
  </vue-tribute>
</div>

See the available Tribute options here.

Events

Tribute broadcasts two events — a tribute-replaced event, and a tribute-no-match event (see docs here). Listeners for these events can be attached directly to the child element of the <vue-tribute> component. Eg:

<vue-tribute :options="options">
  <input type="text" placeholder="@..." @tribute-no-match="noMatchFound" />
</vue-tribute>

Development

# To run the example
$ npm run example

# To run the tests
$ npm test

# To publish the dist file
$ npm run build

License

MIT © Collin Henderson

S
Description
No description provided
Readme MIT 1.5 MiB
Languages
Vue 62.5%
JavaScript 37.5%