Dialog focus and dom access method #2840
Unanswered
james-ep01
asked this question in
Q&A
Replies: 1 comment
-
|
You are responsible for creating the content of the dialog box and opening it.
const inputEl = document.createElement('input');
const dialog = new ui.Dialog({
content: inputEl
});
dialog.open();
inputEl.value = 5;
dialog.open();
dialog.el.querySelector('input').value = 5;An example of the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Introduction
I want to focus on the input field in the Dialog and access the field in the Dialog to set the value, but I don't know when it is loaded, so I can't access it.
I can't focus it or access the dom with jquery, etc. What should I do?
Below is an example where I select a white label and modify it in the Dialog.

Thank you.
Steps to reproduce
No response
Restrictions & Constraints
No response
Does your question relate to JointJS or JointJS+. Select both if applicable.
JointJS+
Beta Was this translation helpful? Give feedback.
All reactions