Expand my Community achievements bar.

SOLVED

class cq-droptarget in touch ui image component

Avatar

Level 1

Hi,

I want to know the use of class="cq-droptarget" when we make an image component using the sling:resourceType = granite/ui/components/foundation/form/fileupload.

I tried removing the property but could not see any change. Thanks in advance.

Regards,

Ankush Dhingra

1 Accepted Solution

Avatar

Correct answer by
Level 10

That is simply the class attribute for granite types - Common Attributes — Granite UI 1.0 documentation

View solution in original post

4 Replies

Avatar

Level 10

I am not seeing that in the code or the prop at:

/libs/granite/ui/components/foundation/form/fileupload/fileupload.jsp

I see:

/**

       * The drop zone selector to upload files from file system directly (if browser allows it).

       */

      - dropZone (String)

Avatar

Level 1

Hi,

I see it here :

  • /libs/wcm/foundation/components/textimage/cq:dialog/content/items/image/items/column/items/file
  • /libs/wcm/foundation/components/image/cq:dialog/content/items/image/items/column/items/file

I am using AEM 6.2

1400870_pastedImage_0.png

Regards,

Ankush Dhingra

Avatar

Correct answer by
Level 10

That is simply the class attribute for granite types - Common Attributes — Granite UI 1.0 documentation

Avatar

Level 1

i am in process to migrate coralui 2 to coralui 3. File upload component in CORALUI 3 doesn't have any way for drag and drop files from asset explore on left. Can you please share any reference implementation to migrate fileupload component?