当前位置: 首页>>代码示例>>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;未经允许,请勿转载。