-
Notifications
You must be signed in to change notification settings - Fork 4
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
Question: Textbox Indexes #3
Comments
That would be a nice feature! It would be interesting to use a data-tab-index attribute, but what about using the global attribute Would it be a god choice to add a data-tab-index property in case that someone wishes to rearrange texboxes in a different way using CSS? —Reply to this email directly or view it on GitHub. |
Didn't even know there was a tabindex property =D OK, that would take care of the texboxes on an array-like structure. How about when we want to use right, left, bottom, up? can we use the same index attribute to store x and y? |
Interesting, looks like we are thinking alike... yesterday I was thinking about two kind of navigation:
About the matrix, I have to check what kind of value is allowed for the What do you think? |
I honestly have to research a bit more. I'm gonna start fiddling around with the current codebase and get back to ya |
At any moment the user will have the option to initialize a navigation like this:
Or
Can you suggest a better naming for both the option and the values? |
|
And what about the whole thing about the auto detection of the matrix based on their visual position? |
I don't know how to do that. And many things would come into mind:
That's why I like the data-tags option better. Anyone rendering a template server or client-side can decide how to arrange them, and the problem of actual positioning them is not of the plugin. |
Oh! another thing we could do is constraint the use of the plugin. e.g.: "If you want autodetection you should render each input contorl inside a form tag, using div's, and don't use any tables" (still like the data attribute option better) |
Maybe I didn't make myself clear. The autodetection of the matrix will be done by checking the offset position of each element in the set of elements. That said, instead of just getting a sequential array of item, we will also lookup where they are rendered, so we can automatically determine the next target to navigate. Imagine we have an HTML that renders as follows: Instead of traversing the whole html an analyze the structure, I think it's easier and more accurate to check their location as rendered in the page. In the end we will have an bidimensional array that will look like:
|
OK, but we would have to add the textboxes in a specific arrangement right? In your example you have: Group |
I will give it a shot so we can play with it... Group —Reply to this email directly or view it on GitHub. |
@rmariuzzo I just checked out the first tests. The next/previous action occurs on the collection of texboxes on the DOM, ordered by the way they were declared on the HTML.
Would it be a god choice to add a data-tab-index property in case that someone wishes to rearrange texboxes in a different way using CSS?
The text was updated successfully, but these errors were encountered: