• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

HTML Canvas - Comboboxes layer issue

Engaged ,
Apr 04, 2022 Apr 04, 2022

Copy link to clipboard

Copied

I have a layer above some comboboxes.  However, the comboboxes always appear ontop of other layers at run time. 

 

2022-04-05_14-44-57.jpg

 

Is there a way to restrict the rendering of the comboboxes at their assigned layer?

Views

67

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 06, 2022 Apr 06, 2022

Copy link to clipboard

Copied

LATEST

not if you use the adobe components because components are placed on a layer above the canvas.

 

otoh, you could create your own components using js. for a combobox:

 

var d = document.createElement("div");

document.getElementById("animation_container").appendChild(d);
document.getElementById("animation_container").appendChild(canvas);  // make sure your canvas is transparent
d.display = "inline-block";
d.id = "cb_"+id;

 

for(var i=0;i<dataA.length;i++){  //  dataA = your jason array

var optionItem = document.createElement("option");

    optionItem.text = dataA[i].label;
    optionItem.value = i;

   d.options.add(optionItem);
}
 

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines