Documentation: Titanium.UI.TableView#deleteRow
Hello,
I just want to point out what may be an error in the online Titanium documentation.
For the Titanium.UI.TableView
object, for its deleteRow
method, the documentation states the method takes two parameters: row (of type object
) and properties (of type object
).
On both Android and iPhone, when I tried to delete a row by passing the actual Titanium.UI.TableViewRow
object, it failed – on iPhone, it always deleted the first row, and on Android, it threw an error saying something about incompatible types.
When I switched to passing the index number of the row to be deleted, it worked on both platforms.
Just an FYI in case you want to update the online documentation. I was using SDK 1.3.
Thank you for the great work on Titanium!!
-Ryan
5 Answers
-
The documentation is still wrong and this should be fixed!
-
Completely correct. Thanks for posting this.
-
Argh! This is more wasted hours reading, re-reading and wondering if I lost my mind. Thanks for pointing this out. Defying docs is supposed to cause problems not solutions. Can't decide if Titanium is brilliant or a programmer fly trap.
-
Thanks for posting this, saved me a lot of time. 11 months, still no doc update…
-
BUMP