我需要在 Xpage 中设置表单的“自动完成”属性。我知道如何在字段上设置它,但我需要完全阻止浏览器自动填充我的表单。
在Dgrid 0.3.16我使用的是Observable商店,当我在商店中的数据发生变化时,我调用了商店通知功能.(不是'put',因为我只需要一个UI更新,这是一个特定的情况)
store.notify(object, existingId);
Run Code Online (Sandbox Code Playgroud)
我现在已将Dgrid升级到版本0.4,我使用'dstore'作为商店.商店是这样创建的:
var store = new declare([ Rest, SimpleQuery, Trackable, Cache, TreeStore ])(lang.mixin({
target:"/ac/api?fetchview",
idProperty:"$uniqueid",
useRangeHeaders: true
}, config));
store.getRootCollection = function (parent, options) {
return this.root.filter({parent: parent.$position},options);
};
store.getChildren = function (parent, options) {
return this.root.filter({parent: parent.$position},options);
};
store.mayHaveChildren = function (item) {
return item.$iscategory;
};
this.collection = store;
Run Code Online (Sandbox Code Playgroud)
如何更改一行而不调用"put"时如何通知商店?我需要dGrid重新渲染行.