-
Notifications
You must be signed in to change notification settings - Fork 669
APIs
Steven edited this page Aug 25, 2015
·
11 revisions
You can invoke this method to load data
when data
is empty.
It wouldn't reload data if they are already exists.
-
flag - [String] - the
at
char - data - [Array] - data to storage
$inputor.atwho('load', '@', [{name: 'one'}, {nick: 'two'}]);
Run it!
empty
$.getJSON(url, params, function(data) {
$inputor.atwho('load',':', data).atwho('run');
});
destroy it.
empty
$inputor.atwho('destroy');
To set iframe element which the text field belongs to.
- iframe - [DOM] - iframe element
$textField.atwho('setIframe', iframe);
$textField.atwho({at: '@', data: ['Peter', 'Anne']});
Check if the dropdown menu is showing, which means there is a suggestions for you.
Examine the example in examples/tinyMCE.html
to see how to use it.
empty
true | false
$inputor.atwho('isSelecting');
hide the view
empty
$inputor.atwho('hide');