本文整理汇总了TypeScript中dojo/store/Observable.Observable函数的典型用法代码示例。如果您正苦于以下问题:TypeScript Observable函数的具体用法?TypeScript Observable怎么用?TypeScript Observable使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Observable函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: function
getChildren: function (parent, options) {
var children = [];
if (parent.TpMachines) {
arrayUtil.forEach(parent.TpMachines.TpMachine, function (item, idx) {
children.push({
calculatedID: item.Netaddress,
displayName: item.ConfigNetaddress !== item.Netaddress ? item.ConfigNetaddress + " [" + item.Netaddress + "]" : item.ConfigNetaddress,
NetAddress: item.Netaddress,
ConfigNetaddress: item.ConfigNetaddress,
type: "machine",
isMachine: true,
isDir: false,
OS: item.OS,
fullPath: parent.fullPath,
DropZone: parent.DropZone
});
});
return QueryResults(children);
} else if (parent.isMachine || parent.isDir) {
var store = Observable(new FileListStore({
parent: parent
}));
return store.query({
Netaddr: parent.NetAddress,
Path: parent.fullPath,
Mask: "",
OS: parent.OS
});
}
}
示例2: CreateAccountPermissionsStore
export function CreateAccountPermissionsStore(IsGroup, IncludeGroup, AccountName) {
var store = new AccountResourcesStore();
store.IsGroup = IsGroup;
store.IncludeGroup = IncludeGroup;
store.AccountName = AccountName;
return Observable(store);
}
示例3: CreateResourcesStore
export function CreateResourcesStore(groupname, username, basedn) {
var store = new ResourcesStore();
store.groupname = groupname;
store.username = username;
store.basedn = basedn;
return Observable(store);
}
示例4: CreateGroupsStore
export function CreateGroupsStore(username, observable) {
var store = new GroupsStore();
store.username = username;
if (observable) {
return Observable(store);
}
return store;
}
示例5: CreateUsersStore
export function CreateUsersStore(groupname, observable) {
var store = new UsersStore();
store.groupname = groupname;
if (observable) {
return Observable(store);
}
return store;
}
示例6: CreateInheritedPermissionsStore
export function CreateInheritedPermissionsStore(IsGroup, IncludeGroup, AccountName, TabName) {
var store = new InheritedPermissionStore();
store.IsGroup = IsGroup;
store.IncludeGroup = IncludeGroup;
store.AccountName = AccountName;
store.TabName = TabName;
return Observable(store);
}
示例7: CreateIndividualPermissionsStore
export function CreateIndividualPermissionsStore(basedn, rtype, rtitle, name) {
var store = new IndividualPermissionsStore();
store.basedn = basedn;
store.rtype = rtype;
store.rtitle = rtitle;
store.name = name;
return Observable(store);
}
示例8: CreatePermissionsStore
export function CreatePermissionsStore(groupname, username) {
var store = new PermissionsStore();
store.groupname = groupname;
store.username = username;
return Observable(store);
}
示例9: CreateDiskUsageStore
export function CreateDiskUsageStore() {
var store = new DiskUsageStore();
return Observable(store);
}
示例10: CreateActivityStore
export function CreateActivityStore(options) {
var store = new Store(options);
return Observable(store);
}