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

Adobe Animate Custom Components - Collection

New Here ,
Jan 26, 2018 Jan 26, 2018

I'm quite familiar with adding custom HTML5 components in a Canvas document, but I'm struggling with adding a new component in the components.js file, specifically one with the variable type 'Collections'.

According to How to create custom components for HTML5 canvas in Animate CC , a custom component can include properties that are specific to that component, where the name, variable, type, and default can be set. Regarding the type, one of the options is Collections, which the documentation suggests is used in the included ComboBox component, that allows one to add a list of custom <key, value> pairs.

Here is my properties snippet from my components.js file.

"properties": [

     {"name": "items", "variable": "items", "type": "Collection", "default": [{"label":"label0","data":"data0"}]}

]

In my custom component screenshot, the + icon produces no response (and is missing the 'label' and 'data' headers).

Basically, I'm looking to either:

1) See the code of the included ComboBox component to see how I can replicate the working component OR

2) Correct my properties entry (or any other correction) in my components.js file to work correctly to allow me to include the <key, value> pairs in Adobe Animate.

Included ComboBox Component: (working example)

Screen Shot 2018-01-26 at 4.12.02 PM.png

My Custom Component: (not working)

Screen Shot 2018-01-26 at 4.11.32 PM.png

467
Translate
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
no replies

Have something to add?

Join the conversation