The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding. His beloved son Michael has just come home from the war, but does not intend to become part of his father's business. Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family, kind and benevolent to those who give respect, but given to ruthless violence whenever anything stands against the good of the family.
<div class="ui-grid ui-grid-responsive">
<div class="ui-grid-row">
<div class="ui-grid-col-2">
InputText
</div>
<div class="ui-grid-col-10">
<input pInputText type="text" />
</div>
</div>
<div class="ui-grid-row">
<div class="ui-grid-col-2">
InputTextarea
</div>
<div class="ui-grid-col-10">
<textarea pInputTextarea type="text"></textarea>
</div>
</div>
<div class="ui-grid-row">
<div class="ui-grid-col-2">
Button
</div>
<div class="ui-grid-col-10">
<button pButton label="Save"type="button"></button>
</div>
</div>
<div class="ui-grid-row">
<div class="ui-grid-col-2">
Dropdown
</div>
<div class="ui-grid-col-10">
<p-dropdown [options]="cities" [(value)]="selectedCity"></p-dropdown>
</div>
</div>
<div class="ui-grid-row">
<div class="ui-grid-col-2">
Listbox
</div>
<div class="ui-grid-col-10">
<p-listbox [options]="options" [(value)]="selectedOptions"></p-listbox>
</div>
</div>
<div class="ui-grid-row">
<div class="ui-grid-col-2">
Dialog
</div>
<div class="ui-grid-col-10">
<button pButton label="Show" type="button" icon='fa-external-link' (click)="showDialog()"></button>
</div>
</div>
</div>
<p-dialog header="Godfather 1" [(visible)]="display" [responsive]="true" [resizable]="false">
<p>The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
kind and benevolent to those who give respect,
but given to ruthless violence whenever anything stands against the good of the family.</p>
</p-dialog>
<p-panel header="Panel" style="margin-top:20px">
The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
Through Michael's life the nature of the family business becomes clear. The business of the family is just like the head of the family,
kind and benevolent to those who give respect,
but given to ruthless violence whenever anything stands against the good of the family.
</p-panel>
<p-dataTable style="margin-top:20px" [value]="cars" [rows]="10" [paginator]="true" [pageLinks]="3" [responsive]="true">
<header>Cars</header>
<p-column field="vin" header="Vin"></p-column>
<p-column field="year" header="Year"></p-column>
<p-column field="brand" header="Brand"></p-column>
<p-column field="color" header="Color"></p-column>
</p-dataTable>
<p-dataGrid style="margin-top:20px;margin-bottom:20px" [value]="cars" [columns]="5" [paginator]="true" [rows]="20">
<header>
Datagrid
</header>
<template #car>
<div style="padding:3px">
<p-panel [header]="car.vin" [paginator]="true" style="text-align:center">
<img src="showcase/resources/demo/images/car/{{car.brand}}.gif">
<div class="car-detail">{{car.year}} - {{car.color}}</div>
<hr class="ui-widget-content" style="border-top:0">
</p-panel>
</div>
</template>
</p-dataGrid>
export class ResponsiveDemo implements OnInit {
cities: SelectItem[];
selectedCity: string;
options: SelectItem[];
selectedOption: string;
display: boolean = false;
cars: Car[];
showDialog() {
this.display = true;
}
constructor(private carService: CarService) {
this.cities = [];
this.cities.push({label:'New York', value:'New York'});
this.cities.push({label:'Rome', value:'Rome'});
this.cities.push({label:'London', value:'London'});
this.cities.push({label:'Istanbul', value:'Istanbul'});
this.cities.push({label:'Paris', value:'Paris'});
this.options = [];
this.options.push({label:'Option 1', value:'Option 1'});
this.options.push({label:'Option 2', value:'Option 2'});
this.options.push({label:'Option 3', value:'Option 3'});
this.options.push({label:'Option 4', value:'Option 4'});
this.options.push({label:'Option 5', value:'Option 5'});
}
ngOnInit() {
this.carService.getCarsMedium().then(cars => this.cars = cars);
}
}