本文整理匯總了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);
}