You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We know that we cannot add nothing but strings in the content of a GridStackWidget. So, my solution basically when I parse from Backend Data to GridStack Object I do this:
Generates an ID for the Row
Saves that custom content (containers, styleClass, etc) in a store (ID - > Value map)
Sets the content to the ID
Generates an ID for the Col
Saves the custom content (containers, styleClass, etc) in the same store (ID -> value map)
Sets the content to the ID
And in the reverse parse I just build the object accessing the store. And also, we can access the same store to retrieve that content.
So if we need to add new containers or change the styleClasses, we do it on that store and the Grid will just handle the position of the Row/Col
Parent Issue
#24535
Task
The GridStack library have a way to handle the model and dotCMS API to save the template have a similar but different way to do it.
We need to do some research to see what is the best way to get model from GridStack, transform it and send it to the API.
Proposed Objective
Core Features
Proposed Priority
Priority 3 - Average
Acceptance Criteria
No response
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
(apps/dotcms-ui/src/app/api/services/dot-edit-layout/dot-edit-layout.service.ts)
we do the current transformation(apps/dotcms-ui/src/app/api/services/dot-templates/dot-templates.service.ts)
we save the stateAssumptions & Initiation Needs
ngFor
This is a starting point for this
Quality Assurance Notes & Workarounds
No response
What we need to know?
ngFor
the right path?The text was updated successfully, but these errors were encountered: