![](/img/trans.png)
[英]mat-select change event not trigger in setvalue angular 13 reactive form
在表單組內使用 mat-select 在 ts 文件中將值設置為表單控制formula ,不會觸發更改事件 更改事件代碼不會被調用,但是,可以從列表中手動選擇值 ...
[英]mat-select change event not trigger in setvalue angular 13 reactive form
在表單組內使用 mat-select 在 ts 文件中將值設置為表單控制formula ,不會觸發更改事件 更改事件代碼不會被調用,但是,可以從列表中手動選擇值 ...
[英]Angular Material floating label and animations not working
我的 angular 材料組件可以正常工作但無法正確顯示。 我正在使用 angular forms import { FormBuilder, FormGroup } from "@angular/forms"; 該組件如下所示: 我的輸入顯示如下:- 正如您在上面看到的那樣,按鈕也沒有升起。 檢 ...
[英]Adding shadow to angular material tooltip arrow
我正在嘗試為角度材料工具提示箭頭添加陰影,但無法做到。 如果您可以在stackblitz 中看到,我已經使用箭頭自定義了工具提示,但無法為箭頭添加陰影。 我的工具提示 CSS: ...
[英]Hide mat-optGroup's label dynamically
我正在使用 mat-optgroup 和 mat-option 創建一個使用 angular 材料的下拉列表。 在一種情況下,我將 mat-optgroup 的 label 設為空。 在這種情況下,我不想展示 label。 mat-optgroup 中是否有僅顯示/隱藏 label (不是選項) ...
[英]How to change the color of the mat icon of a specific row in angular material table when clicked?
我有一個帶有列的墊表:名稱和情節。 我嘗試過的 html、.ts 和 .css 代碼如下: .html .ts .css 目前,如果我點擊任何行的圖標,所有行中墊子圖標的顏色都會改變,如果我第二次點擊,所有行的顏色都會再次改變。 我想更改我單擊的特定行的墊子圖標的顏色,而不是 ...
[英]How to manipulate angular materials checkbox inside a table
所以我在這里使用角材料 5 表和復選框設置基本上是逐字逐句。 它是表格具有選擇復選框的示例。 https://v5.material.angular.io/components/table/api 。 我想要實現的是當用戶單擊一行時,檢查它是否有效。 如果它無效,請不要將其放入選擇列表並取消選中該 ...
[英]Select the second button in an angular material modal
我在 angular 材料中有一個簡單的模態。 我想在打開/加載時關注是按鈕。 我確實通過在 no 按鈕上設置tabindex='-1'並在提供程序中設置autoFocus: true來實現這一點。 但是,這會導致 UX 問題,您無法使用鍵盤聚焦 no 按鈕。 如何在保持鍵盤可訪問的同時聚焦第二個按 ...
[英]How to close parent dialog from child in angular?
我有一個父對話框,其中有一個子對話框。 在子對話框中有一個關閉按鈕。 單擊此關閉按鈕時,我想關閉父對話框和子對話框。 我們如何在 angular6 中做到這一點? ...
[英]How to center align a button in mat-grid-tile-footer
我有mat-grid-list我在其中列出視圖中的項目。 問題 1:每個項目都有一個mat-grid-tile-footer部分,我在其中顯示一個 angular 材質按鈕。 該按鈕當前在頁腳部分的左側對齊,我想使用下面的代碼將按鈕對齊在mat-grid-tile-footer的中心(flex ro ...
[英]Angular Material Row when looping through data
我的數據源如下 我寫/打印我的表格是這樣的: 循環遍歷數據時,我無法在表中打印另一行 最終結果應該如下所示。 ...
[英]How to enable Material tab from another tab
我的標簽定義 標簽 HTML 最初我的Media Tab被禁用。 如何New tab啟用我的Media Tab New tab ? ...
[英]Getting error "Property 'tpl' does not exist on type 'ListComponent'." using Angular material table
實施角度材料表時出現以下錯誤。 錯誤: 類型“ListComponent”上不存在屬性“tpl”。 我在下面解釋我的代碼。 在這里我使用[cdkDetailRowTpl]="tpl"並且這里錯誤即將到來。 我需要一些幫助來解決這個錯誤。 ...
[英]Allow click event only once on html element
我在我的應用程序中使用下面的代碼。這里我的問題是我在每個表列 header 中包含了下面的代碼。 因此,當我單擊 mat-select 時,將形成一個新的 currentddvalues,並將在 mat-option 的 *ngFor 循環中使用。 問題是,當我單擊一列 header 時,數據將加載 ...
[英]Angular Material cdk-container and main site fixed header z-index override
我在 angular 材料中具有fixed header的站點, z-index為1100 。 雖然我的站點中有一些mat-menu與 header 與z-index:1200重疊並且具有 class cdk-overlay-container (角度材料類),這是默認行為。 要覆蓋這一點,我只需將 ...
[英]How to theme angular material component shapes?
有沒有辦法在角形材料中對主題組件的形狀進行處理? 我知道材料設計的形狀概念使您可以為所有小型/中型/大型組件創建更多的圓角,更少的圓角或什至切角。 有沒有辦法在有角度的材料中實現這一點? 如果不是,那么在角材料中全局自定義零部件的最佳方法是什么? 說我要刪除所有<mat-but ...
[英]Trigger Angular MatDataSource filter manually
我有一個搜索輸入和一個顯示預定義過濾器的選擇下拉列表。 為了實現過濾器,我使用自定義過濾器擴展了Angular MatDataSource filter predicate : 現在我訂閱了搜索輸入的valueChanges和過濾器選擇下拉列表來正確過濾數據: 並為過濾器選擇下 ...
[英]Angular table material won't complie: Unexpected closing tag "ng-container"
我正在集成 angular material5.2.5 的 n Angular 項目:這是我的 app.component.ts: 這是我的 app.component.html: Ps:我已經為角材料配置了模塊。 但我收到此錯誤: 請問有什么幫助嗎? ...
[英]Index number in descending order
我的表包含索引號,當我添加新行時,它應該顯示2,1,0,我需要當前值在頂部索引號2中。按照我的代碼,其工作值為0,1,2。 但是我需要2,1,0。 這是我的html文件 這是我的管道代碼 ...
[英]Create Scroll to top button in Angular material 5
如何在 angular 材料 5 中創建滾動到頂部按鈕? ...
[英]Apply style on first line only in angular material tooltip
我在項目中使用Angular材質工具提示。 我想在tooptip中插入更多1句,並且只想在第一行添加粗體樣式。 我的HTML代碼: 我的TS代碼: 我怎樣才能做到這一點 ? ...