Questions tagged primeng

Explore the latest questions and answers asked by our top developers.

PrimeNG tree component

I should make a Primeng tree. This is my model. export interface Profiles { active?: true, description?: string, function?: [ string ], id?: number, macroFunction?: string, name?: string, nodeTree?: [ { children?: [ string ], data?: { description?: string, flag?: true, functionFK?: string, id?: number, order?: number, parent?: number } } ] } I don’t […]

By A S Bush
Published
Categorized as angular, primeng, primeng-tree Tagged , ,

How to re-create manually rows per page dropdown outside of the p-table – PrimeNg Angular11

I am using PrimeNg Table in Angular11. I want a drop dwon to select rows per apge simillar to this option –> [showCurrentPageReport]="true" currentPageReportTemplate="Showing {first} to {last} of {totalRecords} entries" [rowsPerPageOptions]="[10,25,50]" When I select a option in dropdown rows should change, page report should change. I’m using this nb-dropdown. I don’t know how to do […]

By hanushi
Published
Categorized as angular, primeng Tagged ,

Automatically move cursor after comma separator in PRIMENG p-inputNumber

I have this p-inputNumber component from PrimeNG that displays currency <p-inputNumber [(ngModel)]="amount" formControlName="amount" [maxlength]="9" mode="currency" currency="EUR" [minFractionDigits]="2" useGrouping]="false"></p-inputNumber> I want to change its behavior so that when I reach the max amount of digits the cursor moves automatically to the fraction digits Source: Angular Questions

By cheroz
Published
Categorized as angular, primeng, typescript Tagged , ,

Angular v12 Service return, Getting Type Observable<MyRecord[]> is missing the following properties from type MyRecord[]

I am getting the following error Angular v12 Service return, Getting Type Observable<MyRecord[]> is missing the following properties from type MyRecord[]: lenght, pop, push, concat, and 25 more I am updating my angular v12 service code where it used to be public getRecords(request: SearchDto): Observable<MyViewModel> { return this.http.post<MyRecord[]>(myUrl, request); } I added the SearchDto to […]

By c0micrage
Published
Categorized as angular, primeng Tagged ,

Angular (primeng) copy multiple rows with STRG+Shift

As the title suggests, I have a little problem copying several rows in the table. Im using primeng and the following elements: [(selection)]="selectedFeatures" [metaKeySelection]="true" selectionMode="multiple" It works pretty fine selecting multiple rows with STRG and uncopy a single row with holding STRG too. But i wanted to copy from "start" to "end" with STRG+Shift. -> […]

Angular (primeng) copy multiple rows with Ctrl + Shift

As the title suggests, I have a little problem copying several rows in the table. Im using primeng and the following elements: [(selection)]="selectedFeatures" [metaKeySelection]="true" selectionMode="multiple" It works pretty fine selecting multiple rows with Ctrl and uncopy a single row with holding Ctrl too. But i wanted to copy from "start" to "end" with Ctrl+Shift. -> […]

how do I remove the number labels on the bars of a primeng bar graph?

I want to remove the numbers on the bar graphs. I’m not sure what to change on the Options array to make this happen. Here is my graph. https://ibb.co/G7nR3mz and here is my Options array this.Options = { legend: { labels: { fontColor: ‘#495057′ } }, scales: { xAxes: [{ ticks: { fontColor:’#495057’ }, gridLines: […]

By GioPoe
Published
Categorized as angular, primeng, typescript Tagged , ,

How to change the behavior buttons in the header of p-multiselect in angular?

On the primeng multi-select filter, is there a way to: alter the feature of the "X" button in the header to clear all selections? change the feature of the select all checkbox in the header to appear "selected" even when only just one item is selected? In the picture provided, notice the checkbox highlighted in […]

By Andy Chu
Published
Categorized as angular, node.js, primeng Tagged , ,

Frozen column at the right of a table

I’m trying to freeze a column called "action" at the right on the table, so said column is always displayed when scrolling left or right through the table. I tried with frozenheader and frozenbody but it doesn’t seem to work, or I can’t figure out how to use it in my example. <p-table frozenWidth="200px" #tasksTable […]

By bass
Published
Categorized as angular, frozen-columns, html, primeng Tagged , , ,

Angular v12 PrimeNg MessageService is not showing popup message

I am trying to get the PrimeNg MessageService working with my Angular v12 app but no success so far. There is no error message when I stepped thru the following code let message = "TEST"; this.messageService.add({severity: ‘success’, summary: ‘Success: ‘, detail: message, life: 3000}); console.log("————–> Called MessageService: ", message); I see the console log that […]

By user1250264
Published
Categorized as angular, primeng Tagged ,
1 62

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq