cost 394 ms
如何根据从一个垫选择中选择一个选项来禁用两个垫选择的选项? - How to disable options of two mat-select based on selection of one option from one mat-select?

我正在做一个有两个下拉菜单的项目。 在那里,我能够根据在另一个下拉列表中选择的选项动态禁用/启用一个下拉列表的选项: 代码: HTML代码: 但我也想在选择“所有口袋妖怪”时禁用/启用两个下拉菜单的所有其他选项。 比如,如果在第一个下拉菜单中选择了“所有口袋妖怪”,那么所有其他选项和第二个下拉菜 ...

材料<mat-select>在 Ionic/Angular 项目中无法正确显示</mat-select> - Material <mat-select> not displaying properly in Ionic/Angular Project

我正在尝试将&lt;mat-select&gt;添加到我的 Ionic/Angular 项目中,但它没有正确呈现。 我正在使用angular-material 文档但这是我页面上显示的结果: 这是我的代码: 是的,我已经在我正在使用它的模块以及我的MatSelectModule中导入了MatFor ...

为什么排序不适用于包裹在手风琴中的材料表? - why sorting doesn't work with material table wrapped within accordions?

根据要求,我有两个手风琴,每个手风琴都有一个独立的桌子。 通过单击第一个手风琴,它会打开并调用 API,从后端获取数据并呈现在第一个手风琴内的表格上。 使用此表,排序工作正常,但当我打开第二个手风琴排序时,排序不起作用。 HTML 代码:&lt;mat-accordion multi="fals ...

dialogRef.close() 不是 function 从一个组件打开并从另一个组件关闭 - dialogRef.close() is not a function opening from one component and closing from another component

我有下面的 MatDialog 现在我从一个组件打开MatDialog ,如下所示 现在我想从另一个组件关闭对话框 当我这样做时,出现异常 所以添加了提供者如下 使用提供程序代码修复了错误,但是在我单击oncloseClick function 时出现以下错误 ...

使用mat-datepicker-actions时使用Angular材料Datepicker选择日期时如何关闭日历 - How to close calender when date is selected using Angular material Datepicker when using mat-datepicker-actions

我使用的是普通的 Angular Material Datepicker (Angular 13),但我添加了一些操作按钮: 一个清除日期一个将日期设置为“无穷大” 确定按钮(我想摆脱它) 看我的例子: https://stackblitz.com/edit/angular-material-13- ...

Angular 14 - Slider 仍然不能与电容器一起使用 - Angular 14 - Slider Still Doesn't Work With Capacitor

我知道这个问题自 2018 年以来一直在发生,并且有很多帖子和不同的解决方案,但没有一个对我有用。 我创建了一个新的 Angular 14 项目,删除了启动模板,添加了电容器和材料。 我从第一个Material 示例中添加了 slider 。 如果我通过以下方式运行项目: 我明白了: 它在浏览器中 ...

如何将 json 数据添加到 angular 14 中的 mat 选项值 - How to add json data to mat options values in angular 14

试图通过 json 数据更改 mat 选项复选框的值,但无法更改。我有三个按钮,每个按钮都有 josn 数据文件。如果我单击新数据 1 按钮,我想为 selectOptions 设置该值,同样适用其他。 如何做到这一点以及如何解决这个问题。 app.component.ts: 演示: https: ...

如何取消选中 angular 14 中的垫子复选框 - How to uncheck mat checkbox in angular 14

尝试重新检查 mat 复选框但不工作。 在我的应用程序中单击“Select Checkbox Car and Bus”按钮后单击输入框并选中 Bus and Car 然后单击 Bus and Car 的取消按钮。 再次单击输入字段,现在看到 Bus 和 Car 的复选框未选中但此处已选中。 所以在这 ...

如何检查 angular 14 中的 mat-checkbox - How to checked mat-checkbox in angular 14

试图通过传递值来检查 mat 复选框,但它不起作用。 如果我单击按钮复选框,则应通过传递值来检查。 那么,该怎么做呢? 如果有人知道,请帮助找到解决方案。 app.component.ts: app.component.html: 演示: https://stackblitz.com/edit ...

如何在 Angular 的正确验证状态中获取 ValueControlAccessor 中的内部控件 - How to get the inner control in a ValueControlAccessor in the correct validation satet in Angular

我们开始为我们的 Angular(目前是 12 版)项目实现一个组件库。 目前,我们将第一个组件实现为蓝图。 该组件应封装带有标签、mat-errors、一些验证器等的 Material 输入 ( matInput ),以便开发人员只需要编写 s.th。 喜欢 &lt;our-input max- ...

我希望能够 append 选中的值从 mat-select 到下面的文本区域点击 - I want to be able to append the selected value from a mat-select to the text area below on click

我被要求在工作中使用 Angular 做这个项目,老实说之前没有接触过 Angular 2。 我可以使用 jQuery 做到这一点,但我无法让它在 Angular 中工作。基本上,在这个模式中,我有一个表格,它只是一个模板,您可以在其中选择要包含在 email 中的信息. 我有一个 mat-sele ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM