Primeng: Add readonly to Checkbox and TriStateCheckbox

Created on 6 Jun 2017  路  6Comments  路  Source: primefaces/primeng

[X ] feature request => Please check if request is not on the roadmap already
```

Current behavior
currently available is the disabled state

Expected behavior
Disabled state when using in combination with reactive forms removed the field value from the reactive form (not included when submitting etc..)

Readonly will also display value as disabled, but will include / retain the value in the form

thanks

new feature

Most helpful comment

+1

All 6 comments

+1

You added this to a milestone, but never implemented it ..
can it be added to a new milestone ?

thanks

@cagataycivici is there a new milestone for this feature?

could you add this to any of your upcoming releases ?

thanks

<input #cb type="checkbox" [attr.id]="inputId" [name]="name" [value]="value" [checked]="checked" (focus)="onFocus($event)" (blur)="onBlur($event)"
                [ngClass]="{'ui-state-focus':focused}" (change)="handleChange($event)" [disabled]="disabled" [readonly]="readonly" [attr.tabindex]="tabindex">

still possible ? otherwise you can close it

Can you provide a pull request for it?
Such small features are generally low prioritized and get lost amidst all the bigger ones.
Pull request will give them more visibility.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SchneMa picture SchneMa  路  3Comments

pchristou picture pchristou  路  3Comments

jisqaqov picture jisqaqov  路  3Comments

KannanMuruganmony picture KannanMuruganmony  路  3Comments

markgoho picture markgoho  路  3Comments