Prime Blocks and Typescript file

UI Components for Angular
Post Reply
Sampathl
Posts: 3
Joined: 21 Jun 2021, 15:11

21 Jul 2021, 21:13

Hi,

It seems Prime Blocks are a great concept. I have a question here.

Most of the time where I need Sidebar Layouts. So will I have all the interactions where you showed here with the Blocks code? https://www.primefaces.org/primeblocks- ... ebarlayout

i.e. without any Angular component level Typescript file usage. Because we need to have Typescript to interact with menu and etc. e.g. your UI templates have a lot of TS code for such sidebar layouts. So how will this work only with Html and CSS?

Please let me know. Thanks!

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 Jul 2021, 11:23

Good question, we have created a special ng directive mainly to be used by PrimeBlocks called pStyleClass. It handles events, animations and even hide on outside click. Removes the need to write typescript to manage sidebar, navbar state at component.

https://primefaces.org/primeng/showcase/#/styleclass

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests