ptemplate | A personal website template that 's not a pain in the ass | Portfolio library
kandi X-RAY | ptemplate Summary
kandi X-RAY | ptemplate Summary
A personal website template that's not a pain in the ass to setup and use.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create a new form
- scan all files
ptemplate Key Features
ptemplate Examples and Code Snippets
Community Discussions
Trending Discussions on ptemplate
QUESTION
I'm using PrimeNg table to display my items.
...ANSWER
Answered 2022-Mar-30 at 13:16Try to append "name" attribute with same value to all radiobuttons :
QUESTION
Let's say I have an overlaying modal page students-overlay.component.html
...ANSWER
Answered 2022-Mar-30 at 11:16You can provide custom templating to primeng multi select using pTemplate directive
QUESTION
I am using primeng carousel to display the data/items but the requirements ask for the items to be displayed into 2 different rows per page 5 items for each row and then when we click next we are presented with the other items the 11nth. I have tried to manipulate it as much as I can but with no success at best I display 5 items visually correct but when I set [numVisible]="10"
it all clumps up into a single row.
Does anyone know how you can achieve this with primeng carousel?
ANSWER
Answered 2022-Mar-15 at 14:15If you wanted to display those 10 items, and then 10 more items the same way, you would need to create an Array with a complex item object inside, and like I said, for each item, you loop on the 10 children each time. Not that complex I guess :) Each Item has simply 10 children.
Actually, if you look closely at your example on fiddle, it does exactly what I told you about, meaning they group the items to have kind of "rows" :
QUESTION
I am using p-table and p-columnFilter components in a modal in my angular project.
I am using the following libraries:
...ANSWER
Answered 2022-Mar-10 at 12:07You can use ng-template and you can write your own input, it will solve your problem
QUESTION
Hi im using primeng carousel but there is problem so carousel height is always based on the highest item. I want to have automatic height for every carousel item.
Is this possible?
...ANSWER
Answered 2021-Aug-05 at 16:33Ok so I solved it by adding max height to carousel item and carousel active item like this
QUESTION
Am using PrimeNG's TabView component for a set of Tabs - Home, Appointments, Orders.
The appointments and orders tabs, have a list of links, which navigate to the individual appointment or order, these pages are separate routes/pages, they do not open in the tab.
The first issue is when the user hits the back button, they are taken to the Home Tab by default which is the first tab. The second issue, we need to make it possible for the user to share a link directly to the appointments tab or orders tab.
For both these asks, seems like putting a URL id - "app/main#home" or "app/main#appointments" or a query param : "app/main?tab=home","app/main?tab=appointments" would be good?
I wasn't sure where to be on the ID option, the query param sounded more doable - with a route definition and programmatically selecting the index in ngOnInit.
Does PrimeNG provide something out of the box for this?
Edit: Using Angular 11 with PrimeNG 11.4.4
...ANSWER
Answered 2021-Aug-26 at 05:25- Use
ActivatedRoute
to retrieve query params fortab
. - Get the tab index by comparing the param
tab
withheaderName
oftabView.tabs
. - Assign
[(activeIndex)]
with the tab index in (2).
main.component.html
QUESTION
I have already looked into many questions like this but none of them could help me out. I'm receiving an object that returns a list of cities with their names, habitants and states. Here's my http service request:
...ANSWER
Answered 2022-Feb-23 at 12:21You p-table code is wrong it should be :-
QUESTION
I have created a project in Angular 12 version. Then I have installed the most recent version (11.4.5) of PrimeNG controls in my project. Now I have created a page to use PrimeNG Table with sorting and filtering features. Below the header I have another row to contain the textbox for filtering the data.
Now I want, whenever I input any value in the textbox the table rows will automatically be filtered. I don't want to use enter after inputting any value in the textbox for filtering. But I am facing some compiling errors.
HTML file:
...ANSWER
Answered 2021-Aug-14 at 09:31You get this error as you enable strictTemplate
in tsconfig.json.
error TS2339: Property 'value' does not exist on type 'EventTarget'.
Not recommended to disable the settings in tsconfig.json.
SolutionYou can write a custom filter applyFilter
which receives $event
, field
and matchMode
parameters.
.component.html
QUESTION
In my angular project, I have installed PrimeNG controls version 11.4.4. I have used Table control to create tabular data to show the rows in the group with collapsible style.
Now I have added a textbox and dropdown control right before the header row to filter the table data. But the problem is with Row Group table data, filtering with dropdown is not working always. Only the dropdown item Accessories is working. But for other dropdown item filtering is not working.
Can anyone please run the code to see the problem and suggest to me how to solve this?
...ANSWER
Answered 2021-Aug-15 at 06:19Checked that this logic in rowGroupMetadata
crash when the table is filtered.
QUESTION
I'm creating some p-table and I tried to add sorting but it's not working. Sorting icon is visible, animation of icon works, data in table is rendering but it is not sorting on header click. I found Primeng documentation and I think I did everything that I should. I've tried a few solutions that I've found in internet but nothing helped me.
my cols in ts file:
Data is beeing fetched from API as array of objects (array example below - there is more data in real data array of course):
...ANSWER
Answered 2022-Feb-11 at 00:20After about hour of trying to find a solution finally I've found it. The problem is with getting field from object. It is a bit strange for me but works. If product object is inside a key (node here) of array object it doesn't work so I've changed it.
Example below that doesn't work:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ptemplate
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page