primeng icon indicating copy to clipboard operation
primeng copied to clipboard

DataTables v2.0.0rc doesn't display contents of <header> section.

Open CodeCabbie opened this issue 9 years ago • 4 comments

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting

**Current behavior**
The <header> section in <p-dataTable> does not display it's html contents in v2.0.0rc.

**Expected behavior**
The <header> section should display it's content, as it did in 1.1.4.>

**Minimal reproduction of the problem with instructions**
The following code does not show the words 'Parameter Picker'.
	<p-dataTable [value]="parameters"
			[rows]="20"
			paginator="true"
                	pageLinks="3"
                	[globalFilter]="gb"
                	[rowsPerPageOptions]="[5,10,20]"
                	resizableColumns="true"
                	selectionMode="none"
                	(onRowSelect)="addParameterToPallette($event)"
                	responsive="true" #dt>

		<header>
			<div style="font-size:11pt">Parameter Picker</div>
                <header>
                ...
	</p-dataTable>

**Please tell us about your environment:**
Windows 10, MSCode, NPM

* **Angular version:** 2.0.0

* **PrimeNG version:** 2.0.0rc

* **Browser:** CHROME
 
* **Language:** TypeScript

 

CodeCabbie avatar Jan 24 '17 10:01 CodeCabbie

You need to type p-header or p-footer

danielsogl avatar Jan 24 '17 11:01 danielsogl

Thanks. Is that a change to v2.0.0rc? The documentation says otherwise. (see image) image

CodeCabbie avatar Jan 24 '17 11:01 CodeCabbie

Yes they did. You find all changes here: http://blog.primefaces.org/?cat=12

danielsogl avatar Jan 24 '17 11:01 danielsogl

Many thanks, that's brilliant.

CodeCabbie avatar Jan 24 '17 11:01 CodeCabbie