Data Arrays / Stacks
Tobias Baharanmarjo
Wazzaaap?
Patricia (ProtoPie Team)
Merged in a post:
Read array length in json
P
Philipp Nürnberg
Hi,
it seems like that the length of an array in a parsed json data set cannot be read by ProtoPie.
Example:
fruits: ["apple", "banana", "cherry"].
ProtoPie can dynamically read the single pieces by an index number, that is passed through a variable like parseJson(text, "fruits." + index)
But it seems not possible for ProtoPie at the moment to give information about the length of the array. In Javascript e.g. we would array.length and with the example above, we get the number 3 as an output.
This can be very useful for conditions. Instead of typing in like > 3, which would be independent to the array, we could use the array length.
Scott Higgs
@patricia this might be related to https://protopie.canny.io/feature-requests/p/data-arrays-stacks
Thomas Kerkour
Agree with this, manipulating text with regex is not a great dev / ux-ui-designer experience
Vesone Dean
This would make an already great program incredible!!
I've honestly considered Axure after hearing it has a feature like this already. It's just so time consuming and introduces lots of potential issues that could be alleviated if this feature was a thing. I hope it makes it into Protopie one day!!
Russell Wyner
Being able to list items in an array run a for-loop, would open a world of possibilities. Currenly I find myself having to copy-paste and alter formulas numerous times. Arrays as variables would also be a way to control and reuse ease curve values in multiple places.
Russell Wyner
I have since learned that I can do much of what I wanted bottom-up from inside the component, by using an overridable variable to assign each instance an ID. Still, an array variable would be great.
Patricia (ProtoPie Team)
Merged in a post:
Kanban Board
Thomas Lo
A way to drag and drop components between sortable columns, just like a trello board.
Patricia (ProtoPie Team)
Merged in a post:
Create an Array
J
Jeff Clarke
The ability to create an array and be able to iterate through it would be incredibly useful.
Simple arrays of numbers or text would be a great start, but the ability to add canvas elements to an array would be even better.
For example, I might want to make a container filled with a number of instances of a component. I would then like the ability to loop through them in my logic, say, so I could change the values of variable overrides, or maybe affect the nth one with a focus state, etc.
Patricia (ProtoPie Team)
Merged in a post:
Dynamic Stacks
Matteo Vacca
It is very useful to create a stack when you have a list of elements (es. email messages). If, for example, I delete one of them I have to control all the elements surrounding the one I'm removing to properly move them . With a stack features, when you cancel an item from a group, the item below automatically change their positions to fill the blank
Patricia (ProtoPie Team)
Merged in a post:
Select list form element
Michael C
The ability to have select list form element (dropdown lists) as well as a way to feed dynamic xml data
Load More
→