ng-codemirror-dictionary-hint

WebJar for ng-codemirror-dictionary-hint

License

License

MIT
Categories

Categories

Github Development Tools Version Controls Mirror Application Layer Libs Introspection
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

github-com-amarnus-ng-codemirror-dictionary-hint
Last Version

Last Version

0.3.1
Release Date

Release Date

Type

Type

jar
Description

Description

ng-codemirror-dictionary-hint
WebJar for ng-codemirror-dictionary-hint
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/amarnus/ng-codemirror-dictionary-hint

Download github-com-amarnus-ng-codemirror-dictionary-hint

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/github-com-amarnus-ng-codemirror-dictionary-hint/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>github-com-amarnus-ng-codemirror-dictionary-hint</artifactId>
    <version>0.3.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-amarnus-ng-codemirror-dictionary-hint/
implementation 'org.webjars.bower:github-com-amarnus-ng-codemirror-dictionary-hint:0.3.1'
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-amarnus-ng-codemirror-dictionary-hint/
implementation ("org.webjars.bower:github-com-amarnus-ng-codemirror-dictionary-hint:0.3.1")
'org.webjars.bower:github-com-amarnus-ng-codemirror-dictionary-hint:jar:0.3.1'
<dependency org="org.webjars.bower" name="github-com-amarnus-ng-codemirror-dictionary-hint" rev="0.3.1">
  <artifact name="github-com-amarnus-ng-codemirror-dictionary-hint" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='github-com-amarnus-ng-codemirror-dictionary-hint', version='0.3.1')
)
libraryDependencies += "org.webjars.bower" % "github-com-amarnus-ng-codemirror-dictionary-hint" % "0.3.1"
[org.webjars.bower/github-com-amarnus-ng-codemirror-dictionary-hint "0.3.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bower : angular jar 1.2.26
org.webjars.bower : angular-ui-codemirror jar [0.1.6,0.2)

Project Modules

There are no modules declared in this project.

Angular Codemirror Dictionary Hint  Build Status

This directive allows you to add hint support for your Codemirror instance based on a custom dictionary.

Screenshot

Requirements

Installation (Regular)

You can install using bower:

bower install ng-codemirror-dictionary-hint

Load the script files into your application. Note that you need to load the CodeMirror hint addon as well.

<link type="text/css" rel="stylesheet" href="bower_components/codemirror/lib/codemirror.css">
<link type="text/css" rel="stylesheet" href="bower_components/codemirror/addon/hint/show-hint.css" />
<script type="text/javascript" src="bower_components/angular/angular.js"></script>
<script type="text/javascript" src="bower_components/codemirror/lib/codemirror.js"></script>
<script type="text/javascript" src="bower_components/codemirror/addon/hint/show-hint.js"></script>
<script type="text/javascript" src="bower_components/angular-ui-codemirror/ui-codemirror.js"></script>
<script type="text/javascript" src="bower-components/ng-codemirror-dictionary-hint/lib/ng-codemirror-dictionary-hint.js"></script>

Add this module as a dependency to your AngularJS app:

angular.module('MyApp', [ 'ng.codemirror.dictionary.hint' ]);

Installation (CommonJS)

You can install using npm:

npm install ng-codemirror-dictionary-hint

Add this module as a dependency to your AngularJS app:

var angular = require('angular');
angular.module('MyApp', [ require('ng-codemirror-dictionary-hint') ]);

Usage

Add the directive to your partial as an attribute.

  • You can bind a scope variable (whose value must be an array) and optionally change it over time.
<div ui-codemirror ng-codemirror-dictionary-hint="tags"></div>
  • You can bind a static array inline as well.
<div ui-codemirror ng-codemirror-dictionary-hint="[ 'Soccer', 'Cricket', 'Baseball', 'Kho Kho' ]"></div>

Versions

Version
0.3.1