[TIMOB-6270] iOS: TextField leftButton/rightButton properties should have better type checking
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-07T23:49:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | tbs-1.9.0 |
Reporter | Arthur Evans |
Assignee | Ingo Muschenetz |
Created | 2011-11-21T14:34:14.000+0000 |
Updated | 2017-06-07T23:49:28.000+0000 |
Description
As documented, the TextField leftButton and rightButton properties will take any type of object. But it appears that the only object that can be usefully applied here is a Button. iOS platform was reluctant to document the type as Ti.UI.Button in the TDoc since at this point any object can be inserted here, although it may not do anything useful. (It appears that you can use an ActiviyIndicator as well.)
It would be good to be able to provide a useful type value for this property so developers know what type or types can specify here.
And we should probably throw an error if they pass in something else.
Closing ticket due to time passed and lack of progress or input.