-
+
+
- `,
+
+
+
+
+
+
Context Menu
+ Right click to display.
+
+
+
+
+
+
+
+
+
MegaMenu | Horizontal
+
+
+
MegaMenu | Vertical
+
+
+
+
+
+ `
})
export class MenuDoc {
-
nestedMenuItems = [
{
label: 'Customers',
@@ -521,5 +536,4 @@ export class MenuDoc {
]
}
];
-
}
diff --git a/src/views/uikit/miscdoc.ts b/src/views/uikit/miscdoc.ts
index 16b77b5..cff7360 100644
--- a/src/views/uikit/miscdoc.ts
+++ b/src/views/uikit/miscdoc.ts
@@ -20,10 +20,10 @@ import { OverlayBadgeModule } from 'primeng/overlaybadge';
ProgressBar
@@ -70,14 +70,14 @@ import { OverlayBadgeModule } from 'primeng/overlaybadge';
Avatar
Group
-
+
-
+
Label - Circle
diff --git a/src/views/uikit/overlaydoc.ts b/src/views/uikit/overlaydoc.ts
index 6ba3fcc..638f2af 100644
--- a/src/views/uikit/overlaydoc.ts
+++ b/src/views/uikit/overlaydoc.ts
@@ -10,12 +10,12 @@ import { InputTextModule } from 'primeng/inputtext';
import { FormsModule } from '@angular/forms';
import { TooltipModule } from 'primeng/tooltip';
import { Product, ProductService } from '@/src/service/demo/product.service';
+import { TableModule } from 'primeng/table';
@Component({
standalone: true,
- imports:[ToastModule, DialogModule, ButtonModule, DrawerModule, PopoverModule, ConfirmPopupModule, InputTextModule, FormsModule, TooltipModule],
- template:`
-
+ imports: [ToastModule, DialogModule, ButtonModule, DrawerModule, PopoverModule, ConfirmPopupModule, InputTextModule, FormsModule, TooltipModule, TableModule, ToastModule],
+ template: `
Dialog
@@ -28,16 +28,32 @@ import { Product, ProductService } from '@/src/service/demo/product.service';
-
+
Popover
-
-
+
+
+
+
+ | Name |
+ Image |
+ Price |
+
+
+
+
+ | {{ product.name }} |
+ ![]() |
+ {{ product.price }} |
+
+
+
+
@@ -87,10 +103,10 @@ import { Product, ProductService } from '@/src/service/demo/product.service';
-
-
-
-
+
+
+
+
@@ -105,7 +121,7 @@ import { Product, ProductService } from '@/src/service/demo/product.service';
-
+
Are you sure you want to proceed?
@@ -119,7 +135,6 @@ import { Product, ProductService } from '@/src/service/demo/product.service';
providers: [ConfirmationService, MessageService, ProductService]
})
export class OverlayDoc implements OnInit {
-
images: any[] = [];
display: boolean = false;
@@ -138,34 +153,44 @@ export class OverlayDoc implements OnInit {
displayConfirmation: boolean = false;
- constructor(private productService: ProductService, private confirmationService: ConfirmationService, private messageService: MessageService) { }
+ selectedProduct!: Product;
+
+ constructor(
+ private productService: ProductService,
+ private confirmationService: ConfirmationService,
+ private messageService: MessageService
+ ) {}
ngOnInit() {
- this.productService.getProductsSmall().then(products => this.products = products);
+ this.productService.getProductsSmall().then((products) => (this.products = products));
this.images = [];
this.images.push({
source: 'assets/demo/images/sopranos/sopranos1.jpg',
- thumbnail: 'assets/demo/images/sopranos/sopranos1_small.jpg', title: 'Sopranos 1'
+ thumbnail: 'assets/demo/images/sopranos/sopranos1_small.jpg',
+ title: 'Sopranos 1'
});
this.images.push({
source: 'assets/demo/images/sopranos/sopranos2.jpg',
- thumbnail: 'assets/demo/images/sopranos/sopranos2_small.jpg', title: 'Sopranos 2'
+ thumbnail: 'assets/demo/images/sopranos/sopranos2_small.jpg',
+ title: 'Sopranos 2'
});
this.images.push({
source: 'assets/demo/images/sopranos/sopranos3.jpg',
- thumbnail: 'assets/demo/images/sopranos/sopranos3_small.jpg', title: 'Sopranos 3'
+ thumbnail: 'assets/demo/images/sopranos/sopranos3_small.jpg',
+ title: 'Sopranos 3'
});
this.images.push({
source: 'assets/demo/images/sopranos/sopranos4.jpg',
- thumbnail: 'assets/demo/images/sopranos/sopranos4_small.jpg', title: 'Sopranos 4'
+ thumbnail: 'assets/demo/images/sopranos/sopranos4_small.jpg',
+ title: 'Sopranos 4'
});
}
confirm(event: Event) {
this.confirmationService.confirm({
key: 'confirm2',
- target: event.target || new EventTarget,
+ target: event.target || new EventTarget(),
message: 'Are you sure that you want to proceed?',
icon: 'pi pi-exclamation-triangle',
accept: () => {