You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Devsena (JIRA)" <ji...@apache.org> on 2017/01/11 16:25:59 UTC
[jira] [Comment Edited] (FLEX-35241) [FlexJS] Input restrictions to
TextInput component
[ https://issues.apache.org/jira/browse/FLEX-35241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15818512#comment-15818512 ]
Devsena edited comment on FLEX-35241 at 1/11/17 4:25 PM:
---------------------------------------------------------
There is an existing *NumericOnlyTextInputBead* available in "accessories" folder. Even it's working in SWF run, it's broken in HTML version. Moreover, instead of having individual beads for every input types I think it'd be more convenient if we have a single bead where we can restrict any type of inputs, i.e. numeric, string etc.
I've created a new bead *PNRestrictInputBead*, which suppose to meet that purpose. User can assign restrict values in a fashioned manner as we do to Flex TextInput component. A basic declaration is,
{code}
<js:TextInput>
<js:beads>
<js:PNRestrictInputBead restrict="a-z"/>
</js:beads>
</js:TextInput>
{code}
Requesting a review to the source.
Thanks!
was (Author: santanu4ver):
There is an existing *NumericOnlyTextInputBead* available in "accessories" folder. Even it's working in SWF run, it's broken in HTML version. Moreover, having individual beads for every input types I think it'd be more sense if we would have a single bead where we can restrict any type of inputs, i.e. numeric, string etc.
I've created a new bead *PNRestrictInputBead*, which suppose to meet that purpose. User can assign restrict values in a fashioned manner as we do to Flex TextInput component. A basic declaration is,
{code}
<js:TextInput>
<js:beads>
<js:PNRestrictInputBead restrict="a-z"/>
</js:beads>
</js:TextInput>
{code}
Requesting a review to the source.
Thanks!
> [FlexJS] Input restrictions to TextInput component
> --------------------------------------------------
>
> Key: FLEX-35241
> URL: https://issues.apache.org/jira/browse/FLEX-35241
> Project: Apache Flex
> Issue Type: New Feature
> Affects Versions: Apache FlexJS 0.8.0
> Reporter: Devsena
> Attachments: PNRestrictInputBead.as
>
>
> Present _TextInput_ component do not have an in-built way to restrict text inputs.
> We need a feature developed for _TextInput_ component where we can restrict text inputs as we can do so in Flex SDK.
> (Note: The existing _NumericOnlyTextInputBead_ is broken in HTML run)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)