Hi.
I’m having problems with my form structure when item is hidden or shown. When item is shown or hidden position of other subsequent elements is changed.
Is there a way of preserving items positions upon this action?
In my example I have three buttons in one row like this:
Btn1 [new column] Btn2 [new column] Btn3
I’m hiding or showing Btn1 which is causing Btn2 and Btn3 to move left or right and I don’t want that, I want them to be static.
Thanks in advance.
Hi
If you don’t want such behaviour, you can just disable/enable them.
Hide/show will be change positions.
Disabling/enabling item isn’t what I need. I need for item not to be visible. Disable only grays out the item but it’s still shown.
I’ve managed to achieve what i need by doing this:
{ type:"block" , name:"first_block", offsetTop:"5", offsetLeft:"280", list:[
{ type:"button" , name:"Btn2", value:"Next", width:60 },
{ type:"newcolumn" },
{ type:"button" , name:"Btn3", value:"Cancel", offsetLeft:"5", width:"60" }
] },
{ type:"button" , name:"Btn1", value:"Confirm", inputTop:8, position:"absolute", width:"60", hidden: true },
Note that ‘Btn1’ must be last othervise ‘z-index’ order is corupt!!!
Hi
please provide complete json and specify what buttons do you need to hide