Is there a way in flex (Flash Builder 4) to make regions like in c#, to group a part of the code allowing us to collapse it and see through our project more easily?
In c# it's like:
#region example
// my functions I want to group
#endregion
The flex property sets the flexible length on flexible items. Note: If the element is not a flexible item, the flex property has no effect.
If an element has flex: 1 , this means the size of all of the other elements will have the same width as their content, but the element with flex: 1 will have the remaining full space given to it.
Flex ShrinkThe flex-shrink property is only specified as a single number or decimal number (0 - 9).
Firstly, you can't apply a fixed width AND flex-grow. Secondly, flex-grow only works if the parent element has display:flex . In this case the section has display flex but the links do not and the flexgrow divs are children of the link…not the section.
Not that I have seen. I have only found comment and function collapsing.
No, you basically have to use comments. I generally do something like
// *********************** THIS REGION IS FOR ... *************************
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With