primeng

GlobalFilter items from PrimeNG datatable change rowIndex too

不打扰是莪最后的温柔 提交于 2020-07-10 10:23:02
问题 Overflow Community, I want some help on Angular PrimeNG data-table. Currently what is happening is row-index is assigned against each row and works fine but when I apply search filter on row-index got updated again from 0. What I want is to attain the row number against each row even after I search. You can see in the attached Screenshots for a better understanding. Pre-sales data has index 5 and after search it is updated to 0. All I want is to not update the index after search. 来源: https:/

PrimeNG p-table: How to clear p-dropdown filter values when resetting table filters?

我的梦境 提交于 2020-06-13 09:10:39
问题 I am using PrimeNG p-table with a header row that has both input and p-dropdown filters and need to clear the filter values of the input and p-dropdown when calling the .reset() method on the table. As other's have pointed out (https://stackoverflow.com/a/51402834/5764320), you can use [value] on input elements, but there doesn't seem to be a way to clear any non- input filter values. How can I reset the filters values for the p-dropdown (and other non- input filter types)? 回答1: I figured out

Reset filter value on primeNG table

瘦欲@ 提交于 2020-05-29 03:59:05
问题 According to the documentation from https://www.primefaces.org/primeng/#/table the reset method should "Resets sort, filter and paginator state." The problem is that reset table method is not deleting the filters from UI. (although filters field from table.ts is {} after reset) Please see the this where I reproduced it. The code can be seen here Filter the Summary table (see example) by Failed field (or any other field). Press reset. => The table values will be reset but the filter value will

PrimeNG datatable date range filter

a 夏天 提交于 2020-05-12 19:52:20
问题 Filter date range || Datatable I need some help on how to filter date range..dateCreated I want to search date created in search input, but it seems, it's not working. No records found. I was searching about custom filter, and I'm having a hard time how to do it. I'm using momentjs. 回答1: "p-dataTable" is deprecated and therefore my solution uses the newer "p-table". Too accomplish this you need to add your own constraint for the range filter: First you need to add a reference to your table in

PrimeNG datatable date range filter

对着背影说爱祢 提交于 2020-05-12 19:51:23
问题 Filter date range || Datatable I need some help on how to filter date range..dateCreated I want to search date created in search input, but it seems, it's not working. No records found. I was searching about custom filter, and I'm having a hard time how to do it. I'm using momentjs. 回答1: "p-dataTable" is deprecated and therefore my solution uses the newer "p-table". Too accomplish this you need to add your own constraint for the range filter: First you need to add a reference to your table in

PrimeNG datatable date range filter

こ雲淡風輕ζ 提交于 2020-05-12 19:51:16
问题 Filter date range || Datatable I need some help on how to filter date range..dateCreated I want to search date created in search input, but it seems, it's not working. No records found. I was searching about custom filter, and I'm having a hard time how to do it. I'm using momentjs. 回答1: "p-dataTable" is deprecated and therefore my solution uses the newer "p-table". Too accomplish this you need to add your own constraint for the range filter: First you need to add a reference to your table in

ABP大型项目实战(2)

自闭症网瘾萝莉.ら 提交于 2020-04-18 07:23:51
这是《 ABP大型项目实战 》系列文章的一篇。 项目发布到生产环境后难免会有错误。 那么如何进行调试和排错呢? 我看到俱乐部里有人是直接登陆生产服务器把数据库下载到开发机器进行调试排错。 这种办法是不适用于大型项目的: 首先,大型项目(特别是全球都有分公司的大型项目)很有可能24小时都有人在使用。所以尽量避免直接登录生产服务器操作,就算部署,也应该用DevOps、蓝绿部署等办法。 另外,如果大型项目有采用金丝雀发布和A/B测试,那么把数据库下载到开发机器这种方法是很不适用的。 即使大型项目没有采用金丝雀发布和A/B测试,也不适合把数据库下载到开发机器进行调试排错。因为数据库有可能很大,网络传输需要时间,特别是连VPN的时候,甚至有可能要从欧洲传到中国,又要从中国回传到欧洲。 生产环境数据库下载后为了安全还需要脱敏,这也需要时间。 还有其他方法,但是这些方法都存在一个问题,就是时光不能倒流,很多时候你是不可能叫客户回来重现一遍操作流程来复现bug的。 那么有什么好办法呢? 有的,通过查看日志来调试与排错。 ABP在这方面做得不错,内置了审计日志,提供了详细日志基类。嗯,这是两块内容了,一篇文章是讲不完的,所以我分开多篇文章来讲。 先从审计日志开始吧。 不得不说,ABP在这方面做得很好,审计日志是透明的,你要关闭审计日志反而要写代码控制。当然,这里不建议关闭审计日志。 然而

angular universal: dynamic imports for browser only

若如初见. 提交于 2020-04-11 03:33:25
问题 Is it possible to import a module based on condition? Specificly import external module only if angular 2 universal app being rendered in browser but not in server. This question is relevant to some PrimeNG modules that depend on browser features and can be rendered only in browser. It would be great to omit them at server rendering cause calendars and other components are not really important for SEO. Currently I can render Calendar component if turn off server rendering. But server produces

angular universal: dynamic imports for browser only

房东的猫 提交于 2020-04-11 03:33:10
问题 Is it possible to import a module based on condition? Specificly import external module only if angular 2 universal app being rendered in browser but not in server. This question is relevant to some PrimeNG modules that depend on browser features and can be rendered only in browser. It would be great to omit them at server rendering cause calendars and other components are not really important for SEO. Currently I can render Calendar component if turn off server rendering. But server produces

Not getting opened on first click when putting primeng toast on shared component in angular 6

丶灬走出姿态 提交于 2020-03-25 18:36:20
问题 I have used prime ng and put this in shared component so that I can share this p-toast where ever I want but when I am click from parent component to open p-toast it is not getting opened on first click, click on second time it gets opened Parent-component.html <app-modal [keydata]='c' [modalData]="modalData" [data]="selectedRowForDelete" (onConfirmModal)="onConfirm($event)" ></app-modal> Parent-component.ts export class CustomComponentsComponent implements OnInit { @ViewChild(ModalComponent