當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript Observable.Observable函數代碼示例

本文整理匯總了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
         });
     }
 }
開發者ID:richardkchapman,項目名稱:HPCC-Platform,代碼行數:30,代碼來源:FileSpray.ts

示例2: CreateAccountPermissionsStore

export function CreateAccountPermissionsStore(IsGroup, IncludeGroup, AccountName) {
    var store = new AccountResourcesStore();
    store.IsGroup = IsGroup;
    store.IncludeGroup = IncludeGroup;
    store.AccountName = AccountName;
    return Observable(store);
}
開發者ID:GordonSmith,項目名稱:HPCC-Platform,代碼行數:7,代碼來源:ws_access.ts

示例3: CreateResourcesStore

export function CreateResourcesStore(groupname, username, basedn) {
    var store = new ResourcesStore();
    store.groupname = groupname;
    store.username = username;
    store.basedn = basedn;
    return Observable(store);
}
開發者ID:GordonSmith,項目名稱:HPCC-Platform,代碼行數:7,代碼來源:ws_access.ts

示例4: CreateGroupsStore

export function CreateGroupsStore(username, observable) {
    var store = new GroupsStore();
    store.username = username;
    if (observable) {
        return Observable(store);
    }
    return store;
}
開發者ID:GordonSmith,項目名稱:HPCC-Platform,代碼行數:8,代碼來源:ws_access.ts

示例5: CreateUsersStore

export function CreateUsersStore(groupname, observable) {
    var store = new UsersStore();
    store.groupname = groupname;
    if (observable) {
        return Observable(store);
    }
    return store;
}
開發者ID:GordonSmith,項目名稱:HPCC-Platform,代碼行數:8,代碼來源:ws_access.ts

示例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);
}
開發者ID:GordonSmith,項目名稱:HPCC-Platform,代碼行數:8,代碼來源:ws_access.ts

示例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);
}
開發者ID:GordonSmith,項目名稱:HPCC-Platform,代碼行數:8,代碼來源:ws_access.ts

示例8: CreatePermissionsStore

export function CreatePermissionsStore(groupname, username) {
    var store = new PermissionsStore();
    store.groupname = groupname;
    store.username = username;
    return Observable(store);
}
開發者ID:GordonSmith,項目名稱:HPCC-Platform,代碼行數:6,代碼來源:ws_access.ts

示例9: CreateDiskUsageStore

export function CreateDiskUsageStore() {
    var store = new DiskUsageStore();
    return Observable(store);
}
開發者ID:GordonSmith,項目名稱:HPCC-Platform,代碼行數:4,代碼來源:WsDfu.ts

示例10: CreateActivityStore

export function CreateActivityStore(options) {
    var store = new Store(options);
    return Observable(store);
}
開發者ID:AttilaVamos,項目名稱:HPCC-Platform,代碼行數:4,代碼來源:ESPActivity.ts


注:本文中的dojo/store/Observable.Observable函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。