primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Immutable property for data components

Open cagataycivici opened this issue 9 years ago • 11 comments

Bring back ngDoCheck to restore backward compatibility, if new immutable property (true by default) is enabled then use regular setter change detection, if not use ngDoCheck. This applies to;

  • DataTable
  • DataGrid - Done
  • DataList - Done
  • AutoComplete
  • Growl

cagataycivici avatar Jun 28 '17 08:06 cagataycivici

is there a work around? splice and push not reflected in p-datatable

gjenner avatar Jun 29 '17 17:06 gjenner

To get them reflected you need to set [immutable]="false"

cagataycivici avatar Jun 29 '17 17:06 cagataycivici

  • Can't bind to 'immutable' since it isn't a known property of 'p-dataTable'.

  • <p-dataTable [value]="ocDiagnosisDisplayed" [immutable]="false" [resizableColumns]="true" selectionMode="single" [(selection)]="oChronicSelected" (onRowSelect)="onChronicRowSelect($event)">

  • "primeng": "^4.1.0-rc.2"

gjenner avatar Jun 29 '17 18:06 gjenner

You need rc3 for this which is due tomorrow.

cagataycivici avatar Jun 29 '17 19:06 cagataycivici

sorry, same error with rc3

gjenner avatar Jun 30 '17 20:06 gjenner

Weird, it works for me.

cagataycivici avatar Jul 01 '17 07:07 cagataycivici

can you post an example that has [immutable], I still get •Can't bind to 'immutable' since it isn't a known property of 'p-dataTable'.

gjenner avatar Jul 01 '17 10:07 gjenner

Showcase is already updated with details. You can find the example here https://github.com/sudheerj/primeng-4.1/blob/master/src/app/components/datatable/datatabledemo.component.html

sudheerj avatar Jul 01 '17 12:07 sudheerj

uninstalled and reinstalled primeng, now it works, thank you.

gjenner avatar Jul 01 '17 14:07 gjenner

That's great. You might have older versions.

sudheerj avatar Jul 01 '17 18:07 sudheerj

Problem, p-radioButton no longer accepts inline style, i.e.

<p-radioButton style=”margin-left: 10px;”>

Thank you in advance,

Geordie Jenner

Net Connect Healthcare Systems

www.ncpractice.com

From: Sudheer Jonna [mailto:[email protected]] Sent: Saturday, July 01, 2017 2:16 PM To: primefaces/primeng Cc: gjenner; Comment Subject: Re: [primefaces/primeng] Immutable property for data components (#3227)

That's great. You might have older versions.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/primefaces/primeng/issues/3227#issuecomment-312447598 , or mute the thread https://github.com/notifications/unsubscribe-auth/AYwRHfk9Kw-rvRmKsq30fiyKi1HQJyBsks5sJoz5gaJpZM4OHpPN . https://github.com/notifications/beacon/AYwRHeOlAE4MEjd-NQphwIDZS06CbjhSks5sJoz5gaJpZM4OHpPN.gif

gjenner avatar Jul 01 '17 18:07 gjenner