flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Devsena (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (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 edited comment on FLEX-35049 at 1/10/17 10:39 AM:
----------------------------------------------------------

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:
{code}
// 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>
{code}
Please, check.


was (Author: santanu4ver):
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:
{code}
// 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>
{code}
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
(v6.3.4#6332)

Mime
View raw message