Hi
So, back again with my 360 button's matrix...
I just noticed that { }
is really usefull to fold/unfold big parts of the code in the props field...
For example, i know i won't change anything in the props.id, so i can "hide" all this part, really usefull to navigate.
But if i change something else... woooosh... every part gets unfold.... like my 360 lines of labels...
So, is there a way to keep those folded parts... folded by default ?....
Thank you
No there's no way to do that.
Wrong statement inside...
Given the size of your script you could consider putting it in an external js file next to the session and use the IMPORT syntax to retreive it:
props.js
JS{
// etc
}
props property
IMPORT{props.js}
Edit: doesn't work with current implementation of the IMPORT{} syntax
1 Like
Thank you.
I may be missing something, it doesn't work.
I've called this session Template.json
, my props Template.js
.
Both files are in the Session folder.
I put IMPORT{Template.js}
in the matrix props. Reloaded the session...
But nothing...
Nothing in the console (ctrl+k) ?
Well... that's super weird...
I have nothing in the matrix whit IMPORT in its props...
But...
I have my Template.js in another matrix of this session (their Id are differents...) !!
Hmm actually I've spoken too fast, IMPORT may not be suited for use in the props property, I'll probably need to improve how it works to make that happen.
Ok.
Maybe using an external editor (which one ? Sublime ?) , I could try to make a temporary CM, with receive(/EDIT.... matrix...) . That should help me to see the changes i make, with a single Ctrl save... keeping folded all the "this one is ok" parts ?...