update steps and tabmenu
This commit is contained in:
parent
7117f770ca
commit
38574a958f
@ -24,6 +24,10 @@ import {InvalidStateDemoComponent} from './demo/view/invalidstatedemo.component'
|
|||||||
import {AppTimelineDemoComponent} from './pages/app.timelinedemo.component';
|
import {AppTimelineDemoComponent} from './pages/app.timelinedemo.component';
|
||||||
import {IconsDemoComponent} from './demo/view/iconsdemo.component';
|
import {IconsDemoComponent} from './demo/view/iconsdemo.component';
|
||||||
|
|
||||||
|
import {SeatDemoComponent} from './demo/view/menu/seatdemo.component';
|
||||||
|
import {PersonalDemoComponent} from './demo/view/menu/personaldemo.component';
|
||||||
|
import {ConfirmationDemoComponent} from './demo/view/menu/confirmationdemo.component';
|
||||||
|
import {PaymentDemoComponent} from './demo/view/menu/paymentdemo.component';
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
RouterModule.forRoot([
|
RouterModule.forRoot([
|
||||||
@ -41,7 +45,14 @@ import {IconsDemoComponent} from './demo/view/iconsdemo.component';
|
|||||||
{path: 'uikit/tree', component: TreeDemoComponent},
|
{path: 'uikit/tree', component: TreeDemoComponent},
|
||||||
{path: 'uikit/panel', component: PanelsDemoComponent},
|
{path: 'uikit/panel', component: PanelsDemoComponent},
|
||||||
{path: 'uikit/overlay', component: OverlaysDemoComponent},
|
{path: 'uikit/overlay', component: OverlaysDemoComponent},
|
||||||
{path: 'uikit/menu', component: MenusDemoComponent},
|
{path: 'uikit/menu', component: MenusDemoComponent,
|
||||||
|
children: [
|
||||||
|
{path:'', component: PersonalDemoComponent },
|
||||||
|
{path:'seat', component: SeatDemoComponent },
|
||||||
|
{path:'payment', component: PaymentDemoComponent },
|
||||||
|
{path:'confirmation', component: ConfirmationDemoComponent },
|
||||||
|
]
|
||||||
|
},
|
||||||
{path: 'uikit/message', component: MessagesDemoComponent},
|
{path: 'uikit/message', component: MessagesDemoComponent},
|
||||||
{path: 'uikit/misc', component: MiscDemoComponent},
|
{path: 'uikit/misc', component: MiscDemoComponent},
|
||||||
{path: 'uikit/charts', component: ChartsDemoComponent},
|
{path: 'uikit/charts', component: ChartsDemoComponent},
|
||||||
|
@ -119,6 +119,10 @@ import {AppCrudComponent} from './pages/app.crud.component';
|
|||||||
import {AppTimelineDemoComponent} from './pages/app.timelinedemo.component';
|
import {AppTimelineDemoComponent} from './pages/app.timelinedemo.component';
|
||||||
import {IconsDemoComponent} from './demo/view/iconsdemo.component';
|
import {IconsDemoComponent} from './demo/view/iconsdemo.component';
|
||||||
import {AppBlocksDemoComponent} from './demo/view/app.blocksdemo.component';
|
import {AppBlocksDemoComponent} from './demo/view/app.blocksdemo.component';
|
||||||
|
import {SeatDemoComponent} from './demo/view/menu/seatdemo.component';
|
||||||
|
import {PaymentDemoComponent} from './demo/view/menu/paymentdemo.component';
|
||||||
|
import {PersonalDemoComponent} from './demo/view/menu/personaldemo.component';
|
||||||
|
import {ConfirmationDemoComponent} from './demo/view/menu/confirmationdemo.component';
|
||||||
|
|
||||||
import {CountryService} from './demo/service/countryservice';
|
import {CountryService} from './demo/service/countryservice';
|
||||||
import {CustomerService} from './demo/service/customerservice';
|
import {CustomerService} from './demo/service/customerservice';
|
||||||
@ -260,7 +264,11 @@ FullCalendarModule.registerPlugins([
|
|||||||
AppCrudComponent,
|
AppCrudComponent,
|
||||||
AppTimelineDemoComponent,
|
AppTimelineDemoComponent,
|
||||||
AppBlocksDemoComponent,
|
AppBlocksDemoComponent,
|
||||||
BlockViewer
|
BlockViewer,
|
||||||
|
SeatDemoComponent,
|
||||||
|
PaymentDemoComponent,
|
||||||
|
PersonalDemoComponent,
|
||||||
|
ConfirmationDemoComponent
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{provide: LocationStrategy, useClass: HashLocationStrategy},
|
{provide: LocationStrategy, useClass: HashLocationStrategy},
|
||||||
|
15
src/app/demo/view/menu/confirmationdemo.component.ts
Normal file
15
src/app/demo/view/menu/confirmationdemo.component.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-confirmationdemo',
|
||||||
|
template: `
|
||||||
|
<div class="flex align-items-center py-5 px-3">
|
||||||
|
<i class="pi pi-fw pi-check mr-2 text-2xl"></i>
|
||||||
|
<p class="m-0 text-lg">Confirmation Component Content via Child Route</p>
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
})
|
||||||
|
export class ConfirmationDemoComponent {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
15
src/app/demo/view/menu/paymentdemo.component.ts
Normal file
15
src/app/demo/view/menu/paymentdemo.component.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-paymentdemo',
|
||||||
|
template: `
|
||||||
|
<div class="flex align-items-center py-5 px-3">
|
||||||
|
<i class="pi pi-fw pi-money-bill mr-2 text-2xl"></i>
|
||||||
|
<p class="m-0 text-lg">Payment Component Content via Child Route</p>
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
})
|
||||||
|
export class PaymentDemoComponent{
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
15
src/app/demo/view/menu/personaldemo.component.ts
Normal file
15
src/app/demo/view/menu/personaldemo.component.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-personaldemo',
|
||||||
|
template: `
|
||||||
|
<div class="flex align-items-center py-5 px-3">
|
||||||
|
<i class="pi pi-fw pi-user mr-2 text-2xl"></i>
|
||||||
|
<p class="m-0 text-lg">Personal Component Content via Child Route</p>
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
})
|
||||||
|
export class PersonalDemoComponent{
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
15
src/app/demo/view/menu/seatdemo.component.ts
Normal file
15
src/app/demo/view/menu/seatdemo.component.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-seatdemo',
|
||||||
|
template: `
|
||||||
|
<div class="flex align-items-center py-5 px-3">
|
||||||
|
<i class="pi pi-fw pi-ticket mr-2 text-2xl"></i>
|
||||||
|
<p class="m-0 text-lg">Seat Component Content via Child Route</p>
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
})
|
||||||
|
export class SeatDemoComponent{
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
}
|
@ -23,14 +23,16 @@
|
|||||||
<div class="col-12 md:col-6">
|
<div class="col-12 md:col-6">
|
||||||
<div class="card card-w-title">
|
<div class="card card-w-title">
|
||||||
<h5>Steps</h5>
|
<h5>Steps</h5>
|
||||||
<p-steps [model]="stepsItems" [activeIndex]="1"></p-steps>
|
<p-steps [model]="routeItems" [readonly]="false" (activeIndexChange)="pageIndex = $event" [activeIndex]="pageIndex"></p-steps>
|
||||||
|
<router-outlet></router-outlet>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 md:col-6">
|
<div class="col-12 md:col-6">
|
||||||
<div class="card card-w-title">
|
<div class="card card-w-title">
|
||||||
<h5>TabMenu</h5>
|
<h5>TabMenu</h5>
|
||||||
<p-tabMenu [model]="tabMenuItems" [activeItem]="tabMenuItems[0]"></p-tabMenu>
|
<p-tabMenu [model]="routeItems" [activeItem]="routeItems[0]"></p-tabMenu>
|
||||||
|
<router-outlet></router-outlet>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ export class MenusDemoComponent implements OnInit {
|
|||||||
|
|
||||||
items: MenuItem[];
|
items: MenuItem[];
|
||||||
|
|
||||||
tabMenuItems: MenuItem[];
|
routeItems: MenuItem[];
|
||||||
|
|
||||||
megaMenuItems: MegaMenuItem[];
|
megaMenuItems: MegaMenuItem[];
|
||||||
|
|
||||||
@ -27,6 +27,8 @@ export class MenusDemoComponent implements OnInit {
|
|||||||
|
|
||||||
plainMenuItems: MenuItem[];
|
plainMenuItems: MenuItem[];
|
||||||
|
|
||||||
|
pageIndex: number = 0;
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
this.tieredItems = [
|
this.tieredItems = [
|
||||||
@ -282,11 +284,11 @@ export class MenusDemoComponent implements OnInit {
|
|||||||
this.breadcrumbItems.push({ label: 'Backpacks' });
|
this.breadcrumbItems.push({ label: 'Backpacks' });
|
||||||
this.breadcrumbItems.push({ label: 'Item' });
|
this.breadcrumbItems.push({ label: 'Item' });
|
||||||
|
|
||||||
this.tabMenuItems = [
|
this.routeItems = [
|
||||||
{label: 'Personal'},
|
{label: 'Personal',routerLink:''},
|
||||||
{label: 'Seat'},
|
{label: 'Seat', routerLink:'seat'},
|
||||||
{label: 'Payment'},
|
{label: 'Payment', routerLink:'payment'},
|
||||||
{label: 'Confirmation'}
|
{label: 'Confirmation', routerLink:'confirmation'},
|
||||||
];
|
];
|
||||||
|
|
||||||
this.megaMenuItems = [
|
this.megaMenuItems = [
|
||||||
@ -466,21 +468,6 @@ export class MenusDemoComponent implements OnInit {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
this.stepsItems = [
|
|
||||||
{
|
|
||||||
label: 'Personal'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Seat'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Payment'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Confirmation'
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user