Hey Builders!
I’m super excited to announce that Multi State Box is now officially available on Editor X.
Multi State Boxes allow different pieces of content to be displayed one state at a time—ideal for wizards, FAQ templates, product galleries, and more.
The MSB can be found in the Add Panel under Layout Tools .
*Dev Mode must be turned on.
Visit Velo API to learn more on changing states, or follow the Velo Tutorial .
More MSB resources and tutorials coming soon.
Happy building
11 Likes
@jonathant
Hi, Is it working without Velo ?
Does someone have a use case of this feature to see how we can use it ?
thx in advance for your share.
Rob
April 13, 2022, 5:13pm
6
Multi-state boxes are meant to house code so Velo would be required to access them.
Rob
April 13, 2022, 5:15pm
7
Okay I see,
Can’t wait to see all these functions as plug and play features
EditorX ADN is no code plateform first
Hey @rajadaher , the MSB is fully customizable in the Editor but switching between states is done using Velo.
Like so:
$w("#myStatebox").changeState("state2");
The MSB is a very useful feature and will improve with time.
Our goal is to offer it as a completely code-free tool.
yes, Velo would be required to use this
but you can just copy paste the code its not that hard
I created a tutorial video on how to build a Slideshow with Multi State Box, check it out in the link
https://youtu.be/lCN-iSnOSpk
Hi. How can I set a height for MSB = 100% ?
The MSB’s height is Auto, because the height is determined by the States.
So you can set the State’s height to 100vh or %
jaiden
April 27, 2022, 11:22pm
19
@jonathant You mention using the MSB for FAQ’s, but running the code to switch between states when they are inside of a repeater to generate faq’s causes all of the multi state boxes to open and close at once…any recommendation there?
@jaiden When working with Repeaters you need to use ForEachItem
For example:
$w("#repeater1").forEachItem( ($item, itemData, index) => {
$item('#multiStateBox2').onClick(() => {
$item("#multiStateBox2").changeState('box14');
})
} );