Skip to content

Conversation

@Jeff-Y-work
Copy link
Contributor

No description provided.

const layout = resources?.layouts[presentationState.base.resourceId];

if (layout) {
let baseElements = layout.elements;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one is too hardcoded.

instead we have to do like this:

layouts:
   somelaytId:
       elements:
          - $if allVariables._rollbackSide = 'left':
              - id: ...
                type: container
                children:
                    - id: 
                       ...
                       add here the necessary rect with click payloads to implment it correclty
              $else if  allVariables._rollbackSide = '...':
                 type: container
                type: container
                children:
                    - id: 
                       ...
                       add here the necessary rect with click payloads to implment it correclty

so this is more flexible does not require changes in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants