Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

pratikshag92644
Community profile pratikshag92644 Level 1
Job title here
Location here
0 BADGES
Level 1

Level 1

Learn more
Joined the community 01-08-2018 4:02:23 AM
Offline
Top badges earned by pratikshag92644
Customize the badges you want to showcase on your profile
Re: iterating over array of objects using data-sly-list using JS use api causing issues
Avatar
Level 1
pratikshag92644
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile
pratikshag92644
- Adobe Experience Manager
Yes i did that. There was some issue with the object itself but it's resolved now. Thanks.

Views

1.4K

Likes

0

Replies

0
iterating over array of objects using data-sly-list using JS use api causing issues
Avatar
Level 1
pratikshag92644
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile
pratikshag92644
- Adobe Experience Manager
Hi,I have a multifield component in rtouch UI and its values are getting saved in JCR:content as a node property in the form of string[]. Now I am retrieving the array inside javascript use(function(){}) and iterating over the object using data-sly-list. Below is my code:var linkObj =[{"title":"SAS App","path":"/content/sassi-blueprint/en/products/sas-app"}, {"title":"Charter Information","path":"/content/sassi-blueprint/en/products/charter-information"}, {"title":"Welcome to Global Internet Sup...

Views

1.5K

Likes

0

Replies

2
Re: DOM Manipulation in sightly using javascript
Avatar
Level 1
pratikshag92644
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile
pratikshag92644
- Adobe Experience Manager
Thanks for the clarification. One more thing is there a way to debug sightly use function? It throws error with console.log() and I couldn't find it in sources to add the breakpoint.

Views

2.7K

Likes

0

Replies

1
Re: DOM Manipulation in sightly using javascript
Avatar
Level 1
pratikshag92644
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile
pratikshag92644
- Adobe Experience Manager
The example in the link has a java object ("hello") which is used to retrieve message and another script.js file in clientlibs which does all the DOM manipultaion. But in my case I have a js file which uses sightly use (fucntion() {....}) i.e Javascript use API for retrieving message and another script.js file in clientlibs which does DOM manipulation. So there are two JS files for a component.So can we do this? Or can I call the document object inside the sightly use(function(){})?

Views

2.7K

Likes

0

Replies

3
DOM Manipulation in sightly using javascript
Avatar
Level 1
pratikshag92644
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile
pratikshag92644
- Adobe Experience Manager
Is it possible to achieve DOM manipulation inside use function by accessing document and window objects? If not do we need to create a separate js file to achieve this? Currently in my component I have one JS file inside clientlibs which only deals with DOM manipulation and the other one which uses "use" function. So is this the right approach?

Views

3.0K

Likes

0

Replies

6