ng-bootstrap

    0熱度

    1回答

    AngularJS 4 ng Bootstrap - typeahead:使用resultTemplate只能處理一個字符串? 我要像做 [resultTemplate]="getMyTemplateString()" 但這會導致怪異折斷呈現模板。 的例子只能說明: [resultTemplate]="rt" 其中工程。 有沒有辦法?

    0熱度

    1回答

    我想打開一個D3元素的popover onmouseover。 本質上講,這意味着我的component.html文件幾乎是空的,只包含酥料餅的模板: <ng-template #popContent let-greeting="greeting">{{greeting}}, <b>{{name}}</b>!</ng-template> 我無法使用通常的 [ngbPopover]="popCont

    -2熱度

    2回答

    我需要顯示角度組件的彈出對話框。例如,我想顯示一個消息框,然後想要從用戶那裏得到一些確認,例如點擊消息框中的是,否,取消按鈕。我想根據用戶點擊的按鈕來執行操作。有人可以幫忙嗎?我是網絡開發和角色的新手。

    1熱度

    1回答

    我有一個組件包含一個帶有3個輸入文本的表單。兩個輸入是純文本框,一個是ngbTypeahead指向ng-bootstrap的文本框。 我的表單是使用FormBuilder(反應形式)構建的。 this.form = fb.group({ department: [''], name: ['', Validators.required], location: ['',

    0熱度

    1回答

    我有一個簡單的ngBootstrap工具提示,我正在嘗試風格的角度4組件。根據其他SO問題,這應該工作: .tooltip-inner { background-color: #00acd6 !important; /*!important is not necessary if you place custom.css at the end of your css calls

    0熱度

    1回答

    我創建了一個模塊組件,其中包含一些輸入元素NgbModal。當模態打開時,應該打開第一個輸入元素,但是我沒有找到辦法,在模式打開後將輸入元素聚焦。 我可以得到輸入元素(focus-on-newly-added-input-element),但是當我在調用this.modalService.open(...)之後調用它時,它不會集中任何東西,因爲該元素不存在於DOM呢。 所以我必須在模態被渲染後調用

    2熱度

    3回答

    爲什麼不工作[hidden] =「tab.hidden」? <ngb-tabset [activeId]="activeTab" (tabChange)="activeTab = $event.nextId"> <ngb-tab *ngFor="let tab of tabs" [id]="tab.id" [disabled]="tab.disabled" [hidden]="ta

    1熱度

    1回答

    我們實現了自定義在我們的角4應用程序,它覆蓋默認的ErrorHandler,並顯示了錯誤模式的錯誤處理: @Injectable() export class GlobalErrorCatcherService implements ErrorHandler { constructor(private errorDispatcherService: ErrorDispatcherSer

    0熱度

    1回答

    我正在嘗試在角度4應用程序中創建一個模式。爲此,我使用了ng-bootstrap。 從給出的例子here我無法打開模式。 我的應用程序分爲各種模塊。 editModal是一個模塊,editmodelComponent是該模塊下的一個組件。 我想從另一個模塊組件打開這個editmodelComponent。 ediModalModule: import { NgModule } from '@ang

    0熱度

    1回答

    我似乎有一個奇怪的問題,使用角度4.3.4,引導3.3.7,jQuery 3.2.1 @ ng-bootstrap/ng-bootstrap這裏是什麼我有stwp一步 app.module 我已導入@ NG-自舉/ NG-引導模塊和所使用的進口NgbModule.forRoot(),因爲它們在其文檔 在建議我也已經創建模塊稱爲「ModalModule」。我已經粘貼下面我在這裏採用進口僅NgbMod