adding onfocus event to sap.m.Input
See original GitHub issueHi,
I don’t know if here is the right place to start a discussion about new features. I’m missing on some classes like Input the onfocus event (especially for adding it in XML view). I know that I can set an event via controller. But in some cases you have a form with a lot of input boxes and it doesn’t make sense and comfort to add these in the controller.
Great would be this: <Input onfocus=".myEvent" />
Do you agree? BR
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
sap.m.Input - How to catch onFocus-Event
Hi, i am new at sapui5 and i try to create my first mobile app. Is there any way to catch the onfocus-event...
Read more >sap.m.Input - API Reference - Demo Kit - SAPUI5 SDK
class sap.m.Input ... To display suggestions with two text values, add sap.ui.core. ... suggest event is fired when input with no text gets...
Read more >Best practice to register custom focus event handler for input ...
Sadly, I don't find any focus event for sap.m.Input or sap.m.TextArea to which I can register handlers in XML view.
Read more >How to trigger event on focus • Post • Neptune Software ...
Can anybody help me trigger an event while focussing on a sap.m.Input field? I have found a solution in adding an event delegate, ......
Read more >onfocusin Event - W3Schools
The onfocusin event occurs when an element gets focus. The onfocusin event is often used on input fields. Focus Based Events. Event, Description,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@stephania87 The use case can be found here: https://stackoverflow.com/q/58934859/5846045
IMHO, controls shouldn’t expose basic browser events to be handled within the view definition. Instead, the actual enhancement request here would be to allow selecting all input text when navigating with <kbd>up/down</kbd> arrow keys, too, in the case of
sap.m.ListBase/.Table
with thekeyboardMode
"Edit"
.Either way, a simple notepad control would also do the job: https://embed.plnkr.co/98BIbMEIujbzBXqU
Since there is no response from the author for more than 4 weeks I’m closing the ticket.