#How to make a button factory that starts at a certain collection index

1 messages · Page 1 of 1 (latest)

proud shale
#

^

supple trench
#

detect collection index and use conditions to not show elements behind that index

not (#collection_index < 5)
#visible

proud shale
#

Can you give a full example? Sorry

#

I don’t really know how factories work

supple trench
#
{
  "binding_type": "collection_details",
  "binding_collection_name": "form_buttons"
},
{
  "binding_name": "#collection_index",
  "binding_type": "collection",
  "binding_collection_name": "form_buttons"
},
{
  "binding_type": "view",
  "source_property_name": "(not (#collection_index < 5))",
  "target_property_name": "#visible"
}

This will make all buttons with index smaller than 5 invisible hence, it'll start at 6 (You have to put something like that in your button)