add reference to original, reimplement control-xs

This commit is contained in:
Vladimir Mandic
2023-12-27 08:51:55 -05:00
parent 1f8749adec
commit 0df94404c4
14 changed files with 3009 additions and 38 deletions
+1
View File
@@ -2,6 +2,7 @@ function setupControlUI() {
const tabs = ['input', 'output', 'preview'];
for (const tab of tabs) {
const btn = gradioApp().getElementById(`control-${tab}-button`);
if (!btn) continue; // eslint-disable-line no-continue
btn.style.cursor = 'pointer';
btn.onclick = () => {
const t = gradioApp().getElementById(`control-tab-${tab}`);