Angular PrimeNG Sidebar Component Last Updated : 14 Feb, 2023 Comments Improve Suggest changes Like Article Like Report Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Sidebar component in Angular PrimeNG. We will also learn about the properties, events & styling along with their syntaxes that will be used in the code. Sidebar component: It is used to make an element that overlays at the edges of the screen. Properties: visible: It specifies the visibility of the dialog. It is of the boolean data type, the default value is false.position: It specifies the position of the sidebar, valid values are "left", "right", "bottom" and "top". It is of string data type & the default value is left.fullScreen: It is used to add a close icon to the header to hide the dialog. It is of boolean data type & the default value is false.appendTo: It is the target element to attach the dialog, valid values are "body" or a local ng-template variable of another element. It accepts any type of data & the default value is null.style: It is used to set the inline style of the component. It is of string data type & the default value is null.styleClass: It is used to set the style class of the component. It is of string data type & the default value is null.blockScroll: It is used to specify whether to block scrolling of the document when the sidebar is active. It is of boolean data type & the default value is false.baseZIndex: It is used to set the base zIndex value to use in layering. It is of number data type & the default value is 0.autoZIndex: It is used to specify whether to automatically manage the layering. It is of the boolean data type, the default value is true.modal: It is used to specify whether an overlay mask is displayed behind the sidebar. It is of the boolean data type, the default value is true.dismissible: It is used to specify whether to dismiss the sidebar on click of the mask. It is of the boolean data type, the default value is true.showCloseIcon: It is used to specify whether to display the close icon. It is of the boolean datatype, the default value is true.transitionOptions: It is used to set the transition options of the animation. It is of string data type & the default value is 150ms cubic-bezier(0, 0, 0.2, 1).ariaCloseLabel: It is used to set the aria-label of the close icon. It is of string data type & the default value is close.closeOnEscape: It is used to specify if pressing the escape key should hide the sidebar. It is of the boolean data type, the default value is true.Events: onShow: It is a callback that is fired when a dialog is shown.onHide: It is a callback that is fired when a dialog is hidden. Styling: p-sidebar: It is the container elementp-sidebar-left: It is the container element of the left sidebar.p-sidebar-right: It is the container element of the right sidebar.p-sidebar-top: It is the container element of the top sidebar.p-sidebar-bottom: It is the container element of the bottom sidebar.p-sidebar-full: It is the container element of a full-screen sidebar.p-sidebar-active: It is the container element when the sidebar is visible.p-sidebar-close: It is the close anchor element.p-sidebar-sm: It is a small-sized sidebar.p-sidebar-md: It is the medium-sized sidebar.p-sidebar-lg: It is a large-sized sidebar.p-sidebar-mask: It is the modal layer of the sidebar. Creating Angular application & module installation: Step 1: Create an Angular application using the following command.ng new appnameStep 2: After creating your project folder i.e. appname, move to it using the following command.cd appnameStep 3: Install PrimeNG in your given directory.npm install primeng --save npm install primeicons --save Project Structure: It will look like the following: Example 1: This is the basic example that illustrates how to use the Sidebar component. app.component.html <p-sidebar [(visible)]="gfg" [baseZIndex]="10000"> <h1 style="font-weight: normal">GeeksforGeeks</h1> <p>Angular PrimeNG Sidebar Component</p> <p-button type="button" (click)="gfg = false" label="OK" styleClass="p-button-info"> </p-button> <p-button type="button" (click)="gfg = false" label="Cancel" styleClass="p-button-danger"> </p-button> </p-sidebar> <p-button (click)="gfg = true" label="Click Here!"> </p-button> app.component.ts import { Component } from '@angular/core'; @Component({ selector: 'my-app', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent {} app.module.ts import { NgModule } from "@angular/core"; import { BrowserModule } from "@angular/platform-browser"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { AppComponent } from "./app.component"; import { ButtonModule } from "primeng/button"; import { SidebarModule } from "primeng/sidebar"; @NgModule({ imports: [ BrowserModule, BrowserAnimationsModule, SidebarModule, ButtonModule, ], declarations: [AppComponent], bootstrap: [AppComponent], }) export class AppModule {} Output: Example 2: In this example, we will know how to use the position property in the Sidebar component. app.component.html <p-sidebar [(visible)]="gfg" [baseZIndex]="10000" position="right"> <h1 style="font-weight: normal">GeeksforGeeks</h1> <p>Angular PrimeNG Sidebar Component</p> <p-button type="button" (click)="gfg = false" label="OK" styleClass="p-button-info"> </p-button> <p-button type="button" (click)="gfg = false" label="Cancel" styleClass="p-button-danger"> </p-button> </p-sidebar> <p-button (click)="gfg = true" label="Click Here!"> </p-button> app.component.ts import { Component } from '@angular/core'; @Component({ selector: 'my-app', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent {} app.module.ts import { NgModule } from "@angular/core"; import { BrowserModule } from "@angular/platform-browser"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { AppComponent } from "./app.component"; import { ButtonModule } from "primeng/button"; import { SidebarModule } from "primeng/sidebar"; @NgModule({ imports: [ BrowserModule, BrowserAnimationsModule, SidebarModule, ButtonModule, ], declarations: [AppComponent], bootstrap: [AppComponent], }) export class AppModule {} Output: Reference: https://primeng.org/sidebar Comment More infoAdvertise with us Next Article Angular PrimeNG Sidebar Position taran910 Follow Improve Article Tags : Web Technologies AngularJS Angular-PrimeNG Similar Reads ConfirmDialog ComponentAngular PrimeNG ConfirmDialog ComponentAngular PrimeNG is a framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive websites. In this article, we will know how to use ConfirmDialog component in angular primeNG. The ConfirmDialog component is used to make a 4 min read Angular PrimeNG ConfirmDialog BasicAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. This article will show us how to use the ConfirmDialog Basic in Angular PrimeNG. The ConfirmDialog component is used to make a dialog 4 min read Angular PrimeNG ConfirmDialog PositionAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. This article will show us how to use the ConfirmDialog Position in Angular PrimeNG. The ConfirmDialog component is used to make a dialo 5 min read Angular PrimeNG ConfirmDialog ResponsiveAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. In this article, we will learn how to use the ConfirmDialog Responsive in Angular PrimeNG. The ConfirmDialog component is used to make 4 min read Angular PrimeNG ConfirmDialog EventsAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. In this article, we will know how to use Angular PrimeNG ConfirmDialog Events.  The ConfirmDialog component is used to make a dialog bo 3 min read Angular PrimeNG ConfirmDialog ConfirmationServiceAngular PrimeNG is a framework used with angular to create components with great styling, and this framework is very easy to use and is used to make responsive websites. In this article, we will see how to use ConfirmDialog ConfirmationService in Angular PrimeNG. The ConfirmDialog Component is used 3 min read Angular PrimeNG ConfirmDialog CustomizationAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. In this article, we will know how to use the ConfirmDialog Customization component in Angular PrimeNG. The ConfirmDialog Component is 6 min read Angular PrimeNG ConfirmDialog Animation ConfigurationAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. This article will show us how to use the ConfirmDialog Basic in Angular PrimeNG. The ConfirmDialog component is used to make a dialog b 4 min read Angular PrimeNG ConfirmDialog PropertiesAngular PrimeNG is a framework used with angular to create components with great styling. This framework is very easy to use and is used to make responsive websites. In this article, we will learn how to use the ConfirmDialog Properties in Angular PrimeNG. The ConfirmDialog Component is used to mak 6 min read Angular PrimeNG ConfirmDialog TemplatesAngular PrimeNG is a framework used with angular to create components with great styling this framework is very easy to use and is used to make responsive websites. In this article, we will know how to use ConfirmDialog Templates in Angular PrimeNG. The ConfirmDialog Component is used to make a dia 3 min read Angular PrimeNG ConfirmDialog StylingA responsive website may be easily created using the open-source Angular PrimeNG framework, which has a wide range of native Angular UI components for superb style. In this article, we will see how to style the ConfirmDialog component in  Angular PrimeNG, along with understanding the styles and synt 5 min read ConfirmPopup ComponentAngular PrimeNG ConfirmPopup ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the ConfirmPopup component in Angular PrimeNG. The Confirm 4 min read Angular PrimeNG ConfirmPopup ConfirmationServiceAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the ConfirmPopup Component in Angular PrimeNG. The Confirm 4 min read Angular PrimeNG ConfirmPopup Animation ConfigurationAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the ConfirmPopup Animation Configuration in Angular PrimeN 4 min read Angular PrimeNG ConfirmPopup PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the ConfirmPopup Properties in Angular PrimeNG. The Confir 5 min read Angular PrimeNG ConfirmPopup StylingA responsive website may be created with great ease using the open-source Angular PrimeNG framework, which has a wide range of native Angular UI components for superb style. In this article, we'll learn how to style the Angular PrimeNG ConfirmPopup Styling. With respect to the target, the ConfirmPop 4 min read Dialog ComponentAngular PrimeNG Dialog ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Dialog component in Angular PrimeNG. We will also learn 8 min read Angular PrimeNG Dialog BasicAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Basic in Angular PrimeNG. We will also learn about t 6 min read Angular PrimeNG Dialog ModalAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Modal in Angular PrimeNG. We will also learn about t 6 min read Angular PrimeNG Dialog MaximizableAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Maximizable in Angular PrimeNG. We will also learn a 6 min read Angular PrimeNG Dialog PositionAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Position in Angular PrimeNG. We will also learn abou 5 min read Angular PrimeNG Dialog DimensionsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Dimensions in Angular PrimeNG. We will also learn ab 6 min read Angular PrimeNG Dialog ResponsiveAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Responsive in Angular PrimeNG. We will also learn ab 6 min read Angular PrimeNG Dialog Header and FooterAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Header and Footer in Angular PrimeNG. We will also l 3 min read Angular PrimeNG Dialog PositioningAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Positioning in Angular PrimeNG. We will also learn a 4 min read Angular PrimeNG Dialog Overlays InsideAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Angular PrimeNG Dialog Overlays Inside. The Dialog Componen 4 min read Angular PrimeNG Dialog Initial FocusAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dialog Initial Focus in Angular PrimeNG. We will also learn 3 min read Angular PrimeNG Dialog Animation ConfigurationAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to use the Dialog Animation Configuration in Angular PrimeNG. Dialog c 4 min read Angular PrimeNG Dialog PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the Dialog Properties in Angular PrimeNG.  The Dialog com 7 min read Angular PrimeNG Dialog EventsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Dialog Events in Angular PrimeNG. The Dialog Component 3 min read Angular PrimeNG Dialog TemplatesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Dialog Templates in Angular PrimeNG. The Dialog Compone 3 min read Angular PrimeNG Dialog StylingA responsive website may be created with great ease using the open-source Angular PrimeNG framework, which has a wide range of native Angular UI components for superb style. In this article, we will learn how to style the Dialog Styling in Angular PrimeNG. The Dialog component is used to create a c 4 min read Dynamic Dialog ComponentAngular PrimeNG Dynamic Dialog ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Properties for DynamicDialogAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Properties for DynamicDialog in Angular PrimeNG. Dialog 5 min read Angular PrimeNG Dynamic Dialog EventsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn about Angular PrimeNG Dynamic Dialog Events. Dialogs are containers t 4 min read Angular PrimeNG Dynamic Dialog StylingAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dynamic Dialog Styling in Angular PrimeNG. Dialogs are cont 4 min read OverlayPanel ComponentAngular PrimeNG OverlayPanel Show and HideAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dynamic OverlayPanel Show and Hide in Angular PrimeNG. Over 3 min read Angular PrimeNG OverlayPanel Dismissable and CloseIconAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use Dynamic OverlayPanel Dismissable and CloseIcon in Angular P 5 min read Angular PrimeNG OverlayPanel Animation ConfigurationAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG OverlayPanel PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 6 min read Angular PrimeNG Dynamic OverlayPanel EventsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Dynamic OverlayPanel TemplatesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. It provides a lot of templates, components, theme design, an extensive icon library, and much more. 4 min read Angular PrimeNG Dynamic OverlayPanel StylingAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease.  In this article, we will see Angular PrimeNG Dynamic OverlayPanel Styling. OverlayPanel is a contai 4 min read Sidebar ComponentAngular PrimeNG Sidebar ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Sidebar component in Angular PrimeNG. We will also lear 5 min read Angular PrimeNG Sidebar PositionAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Sidebar Position in Angular PrimeNG. We will also learn 3 min read Angular PrimeNG Sidebar SizeAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Sidebar Size in Angular PrimeNG. We will also learn abo 3 min read Angular PrimeNG Sidebar Animation ConfigurationAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to use the Sidebar Animation Configuration in Angular PrimeNG. Sidebar 3 min read Angular PrimeNG Sidebar Full ScreenAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Sidebar Full Screen in Angular PrimeNG. We will also le 3 min read Angular PrimeNG Sidebar PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn how to use the Sidebar Properties in Angular PrimeNG. The Sidebar Com 5 min read Angular PrimeNG Sidebar EventsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will learn about Angular PrimeNG Sidebar Events. The Sidebar Component is used t 3 min read Angular PrimeNG Sidebar StylingAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Sidebar component in Angular PrimeNG. The Sidebar compon 3 min read Tooltip ComponentAngular PrimeNG Tooltip ComponentAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the Tooltip component in Angular PrimeNG. We will also lear 4 min read Angular PrimeNG Tooltip PositionsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Tooltip Positions in Angular PrimeNG. Angular PrimeNG To 3 min read Angular PrimeNG Tooltip Focus and BlurAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Tooltip Focus and Blur in Angular PrimeNG. Angular Prime 3 min read Angular PrimeNG Tooltip ButtonAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Tooltip Button in Angular PrimeNG. Angular PrimeNG Toolt 3 min read Angular PrimeNG Tooltip EventsAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Tooltip events in Angular PrimeNG. Angular PrimeNG Tool 3 min read Angular PrimeNG Tooltip DelayAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Tooltip events in Angular PrimeNG. Angular PrimeNG Tool 3 min read Angular PrimeNG Tooltip Scrolling ContainersAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Tooltip Scrolling Containers in Angular PrimeNG. The To 3 min read Angular PrimeNG Tooltip PropertiesAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Tooltip properties along with code examples in Angular P 5 min read Angular PrimeNG Tooltip StylingAngular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to style the Tooltip Component in Angular PrimeNG. The Tooltip comp 3 min read Like