Hi,
If I add a nested form onto a modal Window, pressing tab would skip the items in the inner form.
Here I have 3 items: A, B, and C. Item B is part of the inner form. They have tabIndex: 1, 2, 3 respectively. If I put a cursor on A and press TAB, the cursor jumps right to C skipping B.
If I add a nested form onto a modal Window, pressing tab would skip the items in the inner form.
Here I have 3 items: A, B, and C. Item B is part of the inner form. They have tabIndex: 1, 2, 3 respectively. If I put a cursor on A and press TAB, the cursor jumps right to C skipping B.
Code:
DynamicForm form = new DynamicForm(); TextItem a = new TextItem("a", "A"); a.setGlobalTabIndex(1); DynamicForm innerForm = new DynamicForm(); TextItem item = new TextItem("b", "B"); item.setGlobalTabIndex(2); innerForm.setItems(item); CanvasItem b = new CanvasItem("innerForm", "Inner Form"); b.setCanvas(innerForm); TextItem c = new TextItem("c", "C"); c.setGlobalTabIndex(3); form.setItems(a, b, c); com.smartgwt.client.widgets.Window window = new com.smartgwt.client.widgets.Window(); window.setWidth(500); window.setHeight(300); window.setAutoCenter(true); window.setIsModal(true); window.addItem(form); window.show();
Comment