文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
APIs
load
You can invoke this method to load data
when data
is empty.
It wouldn't reload data if they are already exists.
Parameter
- flag - [String] - the
at
char - data - [Array] - data to storage
Example
$inputor.atwho('load', '@', [{name: 'one'}, {nick: 'two'}]);
run
Run it!
Parameter
empty
Example
$.getJSON(url, params, function(data) { $inputor.atwho('load',':', data).atwho('run'); });
destroy
destroy it.
Parameter
empty
Example
$inputor.atwho('destroy');
setIframe
To set iframe element which the text field belongs to.
Parameter
- iframe - [DOM] - iframe element
Example
$textField.atwho('setIframe', iframe); $textField.atwho({at: '@', data: ['Peter', 'Anne']});
isSelecting
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.
Parameter
empty
Return
true | false
Example
$inputor.atwho('isSelecting');
hide
hide the view
Parameter
empty
Example
$inputor.atwho('hide');
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论