flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Devsena (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-35049) TextButton 'enabled=false' never works in HTML
Date Tue, 10 Jan 2017 10:39:58 GMT

    [ https://issues.apache.org/jira/browse/FLEX-35049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15814623#comment-15814623

Devsena commented on FLEX-35049:

I have created a new bead *PNDisabledInputBead* which suppose to work in both SWF and HTML
run. I'm attaching the file herewith for yours review. 

Following is a usage of the new _bead_ class:
// in MXML body
<js:TextInput id="myTI2" text="Hello FlexJS!">
		<js:PNDisabledInputBead id="disabledBead"/>
<js:TextButton text="Enable/Disable input field"
// 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:PNDisabledInputBead id="disabledBead" enabled="false"/>
Please, check.

> TextButton 'enabled=false' never works in HTML
> ----------------------------------------------
>                 Key: FLEX-35049
>                 URL: https://issues.apache.org/jira/browse/FLEX-35049
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FlexJS
>    Affects Versions: Apache FlexJS 0.5.0
>            Reporter: Devsena
>              Labels: WrappedSprite
>         Attachments: PNDisabledInputBead.as
> <js:ToggleTextButton/> or <js:TextButton/> 'enabled' property never works
when output as HTML. Buttons are anyway clickable even when 'enabled=false'.

This message was sent by Atlassian JIRA

View raw message