Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go to next ngWig with tab key #177

Open
alainib opened this issue Dec 10, 2017 · 7 comments
Open

go to next ngWig with tab key #177

alainib opened this issue Dec 10, 2017 · 7 comments

Comments

@alainib
Copy link

alainib commented Dec 10, 2017

Hello.

I make a lot of questionary, each one having multiples in the same page.

I want to press "tab" key to jump from the content of a to the next to reduce writing time. Taking the following example, to write "question 1", "question 2","question 3" and so on.

enter image description here

https://plnkr.co/edit/dInpEicp5I5p5D1Cnf5w?p=preview

<body>
  <ng-wig ng-model="text1" class="ngwig-sm"></ng-wig>
  <ng-wig ng-model="text2" class="ngwig-sm"></ng-wig>
  <ng-wig ng-model="text3" class="ngwig-sm"></ng-wig>
  <ng-wig ng-model="text4" class="ngwig-sm"></ng-wig>
  <ng-wig ng-model="text5" class="ngwig-sm"></ng-wig>
</body>

Actually the tab key change jump to the next buttons and never to textarea.
Any idea ? thanks

@stevermeister
Copy link
Owner

good point!
for some reason, tabindex is missing.
willing to make a PR?

@bampakoa
Copy link
Contributor

@stevermeister This has been fixed in the latest version 😃 @alainib Try your plunker with v3.0.16 and let us know.

@stevermeister
Copy link
Owner

stevermeister commented Dec 10, 2017

@bampakoa or, really?
I'm already with ngx :)

a bit off-topic
Still thinking about new package solution.
after last ng-be conference, I have a feeling that ng-packagr is exactly what we need.

@alainib
Copy link
Author

alainib commented Dec 10, 2017

I updated the plunker with 3.0.16 thanks.
Now it go inside the textarea but in i have to press "tab" for each button of the ng-wig ( in my app i have 9) . So a little bit long and not efficient in my case.
Is there a way to jump from textarea to textarea directly even if it is not clean code ?

In all case thanks for the good work

@bampakoa
Copy link
Contributor

bampakoa commented Dec 11, 2017

@alainib You can create a plugin for this. Here is a sample plugin that creates a button. You can follow this tutorial and create your own accordingly, which obviously will not be a button 😄

@alainib
Copy link
Author

alainib commented Dec 14, 2017

@bampakoa thanks but i already created custom button for other purpose.
I want to do this : when i'm in a textarea of a ng-wig, if i press "tab" button it go to the next ng-wig textarea , actually it go to the next button, so i have to press tab 9 times before i fall inside the textarea.
I'm trying to improve only this .
Thanks

@bampakoa
Copy link
Contributor

@alainib I think that you still need a plugin for the behavior that you describe. If you need any help on that, ping me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants