nstudio / nativescript-cardview

:diamonds: :clubs: NativeScript widget for Material Design CardView
MIT License
282 stars 51 forks source link

Disable Object is Cardview #124

Closed mrwrighty closed 2 years ago

mrwrighty commented 2 years ago

I'm trying to disable the contents of a cardview. I can address the objects and fill them with data, for example a TextView, but I cannot disable the TextView object to prevent editing, the isEnabled function is ignored.

description1.text = rows[row][0]; if (completedstatus == "true"){ description1.isEnabled = "false"; }

description1 is a TextView inside a CardView and cannot be disabled.

`

</Card:CardView>`

Even if I force isEnabled in the object like this

<TextView text="" id="description1" row="2" col="0" colSpan="3" class="timeblock" margin="5" height="40" verticalAlignment="top" isEnabled="false"/>

The TextView is never disabled.

mrwrighty commented 2 years ago

My error, TextView is editable="false"