首页 文章
  • 3 votes
     answers
     views

    ng2-bootstrap分页和引导程序表集成错误

    我正在尝试集成ng2-bootstrap pagination component和bootstrap表 . 我有一个简单的bootstrap表加载ngFor指令: <tr> <th *ngFor="#col of cols">{{col.header}} </tr> </thead> <tbody> ...
  • 1 votes
     answers
     views

    具有formControlName属性的ng2-bootstrap datepicker

    我使用包含autocomplete和datepicker(ng2-bootstrap)的Angular 2创建了表单 . 一切都是使用FormGroup和FormControls实现的 . this.searchForm = new FormGroup({ dateStart: new FormControl(null, Validators.required), dateEnd: new...
  • 1 votes
     answers
     views

    在Angular2 rc5中使用ng2-bootstrap模态的Quirk

    我一直在使用Angular2构建日历应用程序,最近我升级到了rc5 . 我的日历允许用户通过使用详细模式创建/编辑约会详细信息,然后显示更改并提示用户确认另一个模式中的更改 . 它还允许用户拖放事件并相应地计算新的日期/时间 . 该应用程序在升级到rc5之前工作正常 . 自升级以来,当用户将事件拖动到新时间时,确认模式将打开并显示上次更改,并且仅当用户在模式内部单击时才会更新以反映新更改 . 预期...
  • 1 votes
     answers
     views

    Angular2 - 从父组件中的子组件运行函数

    我正在研究ng2 RC6 . 我有父组件和子组件 . 在子组件内部我得到了ng2-bootstrap模态,并启动函数: import { Component, ViewChild, AfterViewInit, Input } from '@angular/core'; import { ModalDirective } from 'ng2-bootstrap/ng2-bootstrap'; @...
  • 2 votes
     answers
     views

    ng2-bootstrap - 禁用日期

    我试图从ng2-bootstrap datepicker中禁用一些日期 . 我尝试了不同的选项,但日期未被禁用 . 我怎样才能解决这个问题? export class AppComponent { public dt:Date = new Date(); public minDate:Date = void 0; public events:Array<any>...
  • 1 votes
     answers
     views

    如何用布尔值关闭Angular2模态?

    我是html和Angular2的新手 . 任何有关此问题的帮助将不胜感激 . 我将一个表单组件放在ng2-modal中,我希望当表单从一个事件返回一个布尔值时,该模式将关闭 . 该表单用于向数据库添加新类 . 它的第一个用法是在另一个页面上,它不在模态中 . 在那里,点击组件中的取消/提交后,我让它返回 true 然后重定向到另一个网址 . 对于新的实现,我希望在窗体返回 true 时关闭模式 ....
  • 0 votes
     answers
     views

    TinyMCE与ng2-modal无法正常工作

    我正在为我的Angular 4应用程序使用ng2-bootstrap:https://www.npmjs.com/package/ng2-modal 我在模态中使用TinyMCE编辑器 . 在bootstrap模式中运行TinyMCE编辑器很痛苦,我看到每个人都在网上论坛上抱怨它 . 做一些研究我发现如果在模态打开后初始化,编辑器将在bootstrap模式中工作,所以这就是我所做的: initia...
  • 0 votes
     answers
     views

    Angular2:ng2-bs3-modal对我不起作用

    Trying to build a simple Angular 2 app with modal dialogs using 'ng2-bs3-modal' index.html <!doctype html> <html> <head> <title>Angular 2 QuickStart</title> <me...
  • 1 votes
     answers
     views

    ng2-bootstrap进度条不起作用

    我在使用angular-cli构建的Angular 2应用程序中使用ng2-bootstrap进度条组件 . 正如ng2-bootstrap团队所建议的,我已声明并使用了进度条组件,如下所示: import { AlertModule, AccordionModule, ModalModule, ProgressbarModule } from 'ng2-bootstrap'; import {...
  • 0 votes
     answers
     views

    Angular 2 routerLink无法在导航栏内的ng2-bootstrap下拉列表中工作

    我正在使用ng2-bootstrap导航栏和导航栏内的下拉列表 . 如果您在下面的片段中看到 *ngIf="userHasPermission()" 的条件,我发现我必须使用带有href值的anchros来重新加载整个页面,以便让浏览器导航到所请求的URL . 在selectRecord函数中,我遇到了同样的问题; router.navigate和router.navigate...

热门问题