vmware-clarity

How to display alert on app level from a child component

纵然是瞬间 提交于 2019-12-04 02:42:41
问题 I would like to have some rules or suggestions to be able to do this: I have an alert on app level that I want to show when something is happening on one of my components (ex: Saving information has succeeded or failed). Also, how can I send the different text I want to show? Is there any equivalent of @ViewChild? Thanks for your help 回答1: I would do it with Observable and Subject . Basically you need a service injected in the shared module of those component so they share state. The app

How can I reuse HTML in multiple places without an additional component

半世苍凉 提交于 2019-12-02 01:59:55
问题 I'm currently trying to i18n the menu to display the columns to show. I realized I can use the following to customize its text. <clr-dg-column-toggle> <clr-dg-column-toggle-title>{{‘clr.dg.column.toggle.title’ | translate}} </clr-dg-column-toggle-title> <clr-dg-column-toggle-button clrType = “selectAll”>{{‘clr.dg.column.toggle.selectAll’ | translate}} </clr-dg-column-toggle-button> </clr-dg-column-toggle> However, we have over 50 grids and I would like to avoid copy pasting this into all of

Clarity: Is there a recommended way to make clr-datagrid take up all available vertical space?

本小妞迷上赌 提交于 2019-12-01 08:33:40
I am trying to make my take up all vertical space even if there are no rows in the table yet. Is clr-datagrid customizable to do so? It seems like I have to manually override flexbox properties of .datagrid-host and .datagrid-overlay-wrapper in order to make it grow in column direction. I tried even that but the datagrid don't seem to be growing vertically. The Clarity datagrid supports any fixed height you want on the datagrid element itself. If the height is too large for the number of displayed rows, the body will expand with empty space. If the height is too small for the number of