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


TypeScript ngx-bootstrap.BsDropdownModule類代碼示例

本文整理匯總了TypeScript中ngx-bootstrap.BsDropdownModule的典型用法代碼示例。如果您正苦於以下問題:TypeScript BsDropdownModule類的具體用法?TypeScript BsDropdownModule怎麽用?TypeScript BsDropdownModule使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了BsDropdownModule類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     imports: [RouterTestingModule, BsDropdownModule.forRoot(), SharedModule],
     declarations: [CephfsClientsComponent],
     providers: [{ provide: CephfsService, useValue: fakeFilesystemService }]
   }).compileComponents();
 }));
開發者ID:hzhang-wx,項目名稱:ceph,代碼行數:7,代碼來源:cephfs-clients.component.spec.ts

示例2: beforeEach

 beforeEach(async(() => {
   jobsService = new MockJobsService();
   activeRoute = new MockActivatedRoute();
   TestBed.configureTestingModule({
     declarations: [
       JobExecutionDetailsComponent,
       JobExecutionStatusComponent,
       DataflowDateTimePipe,
       DataflowDurationPipe,
       LoaderComponent,
       PagerComponent,
       DATAFLOW_PAGE,
       DATAFLOW_LIST
     ],
     imports: [
       FormsModule,
       NgxPaginationModule,
       BsDropdownModule.forRoot(),
       TooltipModule.forRoot(),
       RouterTestingModule.withRoutes([])
     ],
     providers: [
       { provide: JobsService, useValue: jobsService },
       { provide: ActivatedRoute, useValue: activeRoute },
       { provide: RoutingStateService, useValue: routingStateService },
       { provide: NotificationService, useValue: notificationService },
       { provide: LoggerService, useValue: loggerService }
     ]
   })
     .compileComponents();
 }));
開發者ID:BoykoAlex,項目名稱:spring-cloud-dataflow-ui,代碼行數:31,代碼來源:job-execution-details.component.spec.ts

示例3: beforeEach

 beforeEach(async(() => {
   activeRoute = new MockActivatedRoute();
   TestBed.configureTestingModule({
     declarations: [
       TaskLaunchComponent,
       DataflowDateTimePipe,
       LoaderComponent,
       DATAFLOW_PAGE,
       DATAFLOW_LIST,
       KvRichTextComponent,
       PagerComponent
     ],
     imports: [
       FormsModule,
       ReactiveFormsModule,
       NgxPaginationModule,
       ClipboardModule,
       BsDropdownModule.forRoot(),
       TooltipModule.forRoot(),
       RouterTestingModule.withRoutes([])
     ],
     providers: [
       { provide: TasksService, useValue: tasksService },
       { provide: ActivatedRoute, useValue: activeRoute },
       { provide: RoutingStateService, useValue: routingStateService },
       { provide: NotificationService, useValue: notificationService },
       ClipboardService
     ]
   })
     .compileComponents();
 }));
開發者ID:BoykoAlex,項目名稱:spring-cloud-dataflow-ui,代碼行數:31,代碼來源:task-launch.component.spec.ts

示例4: beforeEach

  beforeEach(async(() => {
    activeRoute = new MockActivatedRoute();

    TestBed.configureTestingModule({
      declarations: [
        RolesDirective,
        TruncatePipe,
        LoaderComponent,
        TaskScheduleSummaryComponent,
        StreamDslComponent
      ],
      imports: [
        NgxPaginationModule,
        ModalModule.forRoot(),
        PopoverModule.forRoot(),
        BsDropdownModule.forRoot(),
        BsDatepickerModule.forRoot(),
        FormsModule,
        FloModule,
        ReactiveFormsModule,
        RouterTestingModule.withRoutes([])
      ],
      providers: [
        { provide: SharedAboutService, useValue: aboutService },
        { provide: AuthService, useValue: authService },
        { provide: ActivatedRoute, useValue: activeRoute },
        { provide: TasksService, useValue: tasksService },
        { provide: LoggerService, useValue: loggerService },
        { provide: NotificationService, useValue: notificationService }
      ]
    })
      .compileComponents();
  }));
開發者ID:BoykoAlex,項目名稱:spring-cloud-dataflow-ui,代碼行數:33,代碼來源:task-schedule-summary.component.spec.ts

示例5: describe

describe('HostsComponent', () => {
  let component: HostsComponent;
  let fixture: ComponentFixture<HostsComponent>;

  const fakeAuthStorageService = {
    getPermissions: () => {
      return new Permissions({ hosts: ['read', 'update', 'create', 'delete'] });
    }
  };

  configureTestBed({
    imports: [
      SharedModule,
      HttpClientTestingModule,
      ComponentsModule,
      BsDropdownModule.forRoot(),
      RouterTestingModule
    ],
    providers: [{ provide: AuthStorageService, useValue: fakeAuthStorageService }],
    declarations: [HostsComponent]
  });

  beforeEach(() => {
    fixture = TestBed.createComponent(HostsComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should create', () => {
    expect(component).toBeTruthy();
  });
});
開發者ID:ShiqiCooperation,項目名稱:ceph,代碼行數:32,代碼來源:hosts.component.spec.ts

示例6: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     declarations: [
       AppsBulkImportPropertiesComponent,
       DATAFLOW_PAGE,
       DATAFLOW_LIST,
       FocusDirective,
       PagerComponent
     ],
     imports: [
       ModalModule.forRoot(),
       PopoverModule.forRoot(),
       ReactiveFormsModule,
       FormsModule,
       NgxPaginationModule,
       BsDropdownModule.forRoot(),
       TooltipModule.forRoot(),
       RouterTestingModule.withRoutes([])
     ],
     providers: [
       { provide: AuthService, useValue: authService },
       { provide: RoutingStateService, useValue: routingStateService },
       { provide: AppsService, useValue: appsService },
       { provide: SharedAboutService, useValue: sharedAboutService },
       { provide: BsModalRef, useValue: bsModalRef },
       { provide: NotificationService, useValue: notificationService },
       { provide: LoggerService, useValue: loggerService },
       BlockerService
     ]
   })
     .compileComponents();
 }));
開發者ID:BoykoAlex,項目名稱:spring-cloud-dataflow-ui,代碼行數:32,代碼來源:apps-bulk-import-properties.component.spec.ts

示例7: describe

describe('HostDetailsComponent', () => {
  let component: HostDetailsComponent;
  let fixture: ComponentFixture<HostDetailsComponent>;

  configureTestBed({
    imports: [
      HttpClientTestingModule,
      TabsModule.forRoot(),
      BsDropdownModule.forRoot(),
      SharedModule
    ],
    declarations: [HostDetailsComponent]
  });

  beforeEach(() => {
    fixture = TestBed.createComponent(HostDetailsComponent);
    component = fixture.componentInstance;

    component.selection = new CdTableSelection();

    fixture.detectChanges();
  });

  it('should create', () => {
    expect(component).toBeTruthy();
  });
});
開發者ID:dillaman,項目名稱:ceph,代碼行數:27,代碼來源:host-details.component.spec.ts

示例8: describe

describe('MirroringComponent', () => {
  let component: MirroringComponent;
  let fixture: ComponentFixture<MirroringComponent>;

  configureTestBed({
    declarations: [MirroringComponent, MirrorHealthColorPipe],
    imports: [
      SharedModule,
      BsDropdownModule.forRoot(),
      TabsModule.forRoot(),
      ProgressbarModule.forRoot(),
      HttpClientTestingModule
    ]
  });

  beforeEach(() => {
    fixture = TestBed.createComponent(MirroringComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should create', () => {
    expect(component).toBeTruthy();
  });
});
開發者ID:ShiqiCooperation,項目名稱:ceph,代碼行數:25,代碼來源:mirroring.component.spec.ts

示例9: beforeEach

 beforeEach(async(() => {
   TestBed.configureTestingModule({
     declarations: [
       LogoComponent,
       NavigationSearchComponent,
       StreamStatusComponent,
       AppTypeComponent,
       TaskStatusComponent,
       RolesDirective
     ],
     imports: [
       CommonModule,
       FormsModule,
       ReactiveFormsModule,
       BrowserModule,
       RouterTestingModule.withRoutes([]),
       BrowserAnimationsModule,
       SharedModule,
       BsDropdownModule.forRoot(),
       ModalModule.forRoot()
     ],
     providers: [
       { provide: SharedAboutService, useValue: aboutService },
       { provide: AppsService, useValue: appsService },
       { provide: StreamsService, useValue: streamsService },
       { provide: TasksService, useValue: tasksService },
       { provide: AuthService, useValue: authService }
     ]
   }).compileComponents();
 }));
開發者ID:BoykoAlex,項目名稱:spring-cloud-dataflow-ui,代碼行數:30,代碼來源:search.component.spec.ts

示例10: beforeEach

 beforeEach(async(() => {
   activeRoute = new MockActivatedRoute();
   TestBed.configureTestingModule({
     declarations: [
       RolesDirective,
       TaskExecutionComponent,
       DataflowDateTimePipe,
       DataflowDurationPipe,
       LoaderComponent,
       DATAFLOW_PAGE,
       DATAFLOW_LIST,
       PagerComponent
     ],
     imports: [
       FormsModule,
       ReactiveFormsModule,
       NgxPaginationModule,
       BsDropdownModule.forRoot(),
       TooltipModule.forRoot(),
       RouterTestingModule.withRoutes([])
     ],
     providers: [
       { provide: SharedAboutService, useValue: aboutService },
       { provide: AuthService, useValue: authService },
       { provide: TasksService, useValue: tasksService },
       { provide: RoutingStateService, useValue: routingStateService },
       { provide: ActivatedRoute, useValue: activeRoute },
       { provide: NotificationService, useValue: notificationService }
     ]
   })
     .compileComponents();
 }));
開發者ID:BoykoAlex,項目名稱:spring-cloud-dataflow-ui,代碼行數:32,代碼來源:task-execution.component.spec.ts


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