Xpages Getting Select 2 以使用当前的扩展库 [英] Xpages Getting Select 2 to work with current Extension Library
问题描述
我已经安装了最新的扩展库,并且正在使用 Bootstrap 构建一个 Xpages 应用程序.Select 2 不包括在当前的 Ext Lib 中.它包含在 Xpages4Bootstrap 中.虽然这是一个很好的扩展,但我不确定我是否真的应该包含它来获得 Select2 - 除非有其他好处.但是如何安装 Select 2 以便它与扩展库一起使用?我尝试使用 这篇文章 中的步骤,但到目前为止没运气.当我运行代码时,我得到 p>
I have installed the latest Extension Library and am building an Xpages app with Bootstrap. Select 2 is not included in the current Ext Lib. It is included in Xpages4Bootstrap. While that is an excellent extension I am not sure if I really should include that just to get Select2 - unless there are other benefits. But how do I install Select 2 so it works with the Extension Library? I tried using the steps from this post but so far no luck. When I run the code I get
'JQuery' not found at [/select2.min.js.jss]
推荐答案
可能是 AMD 加载问题.当我查看 Github github.com/select2/select2/blob/master/dist/js/select2.js 时,我在代码的开头看到了 AMD 检查.只需删除 AMD if then else 并保留最新的 else 子句或更改define.AMD by false
could had be an AMD loading problem. When I look at Github github.com/select2/select2/blob/master/dist/js/select2.js I see an AMD check at the beginning of the code. Just remove the AMD if then else and keep the latest else clause or change define.AMD by false
这篇关于Xpages Getting Select 2 以使用当前的扩展库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!