/This issue originally reported at:
https://issues.apache.org/jira/browse/FLEX-35049./
In the above JIRA issue, Alex suggested this can be achieve through a new
bead implementation. I spent sometime today to create a new bead which
suppose to avail the feature in both SWF and HTML run. The bead class I have
also attached to the JIRA issue, requesting yours review.
Following is a basic usage to the bead class:
// in MXML body
<js:TextInput id="myTI2" text="Hello FlexJS!">
<js:beads>
<js:PNDisabledInputBead id="disabledBead"/>
</js:beads>
</js:TextInput>
<js:TextButton text="Enable/Disable input field"
click="textbutton1_clickHandler(event)"/>
...
// Changing the enable/disable state by script
protected function
textbutton1_clickHandler(event:org.apache.flex.events.MouseEvent):void
{
disabledBead.enabled = !disabledBead.enabled;
}
...
// You can also directly declare the state value to the bead in following
way
<js:beads>
<js:PNDisabledInputBead id="disabledBead" enabled="false"/>
</js:beads>
Thanks!
--
View this message in context:
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Probable-design-to-support-enable-disable-state-to-TextInput-tp58081.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.