-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jordan Humphreys
committed
Oct 2, 2017
1 parent
884ae21
commit d294ceb
Showing
7 changed files
with
107 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,7 @@ <h5>Tribute on traditional form elements!</h5> | |
{key: 'Sir Walter Riley', value: 'Sir Walter Riley', email: '[email protected]'} | ||
], | ||
selectTemplate: function (item) { | ||
if (typeof item === 'undefined') return null; | ||
if (this.range.isContentEditable(this.current.element)) { | ||
return '<span contenteditable="false"><a href="http://zurb.com" target="_blank" title="' + item.original.email + '">' + item.original.value + '</a></span>'; | ||
} | ||
|
@@ -103,6 +104,8 @@ <h5>Tribute on traditional form elements!</h5> | |
return '@' + item.original.value; | ||
}, | ||
|
||
noMatchTemplate: function() { return null; }, | ||
|
||
// the array of objects | ||
values: [ | ||
{key: 'Jordan Humphreys', value: 'Jordan Humphreys', email: '[email protected]'}, | ||
|
@@ -122,6 +125,8 @@ <h5>Tribute on traditional form elements!</h5> | |
return '#' + item.original.name; | ||
}, | ||
|
||
noMatchTemplate: function() { return null; }, | ||
|
||
// function retrieving an array of objects | ||
values: [ | ||
{name: 'Bob Bill', email: '[email protected]'}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,10 @@ | |
span { | ||
font-weight: bold; | ||
} | ||
|
||
&.no-match { | ||
cursor: default; | ||
} | ||
} | ||
|
||
.menu-highlighted { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters