I'm looking for a component like a single-generation treeview that can collapse a section or expand any or all sections, but it would look like an Accordion: headings and canvas "pages".
Obviously, each page would not take up the entire height of the container; they would be fixed height.
Perhaps I am not using the correct terminology (and hence the wrong search terms).
All suggestions are welcome.
You could try a VBox with multiple WindowShade components from the flexlib library, like in this example. You'd need to tweak the styles so it looks more accordian-like though.
Related
We are on 6.5.3. Like in CSS/bootstrap, there is a property to add the spacing between grid columns. I would like to know if there is any way to achieve this in AEM Grid? We need to add some gaps to ensure content doesn't stick together when content is placed inside the column grids. Modifying the grid.less is an option that we are thinking of as last resort, but we would like to check if there is a declarative way from the AEM grid, for example specifying the spacing in some property.
There is no property for padding/margin in AEM grids by default, this is the reason we have grid.less file in place OOTB. But,you can edit and add a property in your templates for that.
Although, this is not the best approach
If you want to add default spacing in all the grids, you have to do it in grid.less.
This would be even worse, as these changes would be global
A Better Approach
I would suggest to create a spacer component instead of adding a default padding in all grids. That way, when you don't want padding in your grids you wouldn't get stuck again.
Content Authors can just add a spacer component(or multiple) in between different components depending upon the size of padding/margin you need.
Customizing AEM Grid
I am creating a form using OpenUI5 and I noticed that when I am using the ResponsiveGridLayout layout, the form gets some padding (blue area around the input fields). Please see result here:
http://plnkr.co/edit/G4NrKPMGdN4DACXZgZOg?p=preview
If I am using the GridLayout layout, the padding is as expected:
http://plnkr.co/edit/Yp6Ul7gLDf0t88vMWrWD?p=preview
Any idea how I can get a form with very a small padding (like in GridLayout example), but in the same time I want to be able to use the 12-column grid system so I can set the size on my input fields?
Ideally, the views need to be XML and to use OpenUI5 classes/controls if possible.
You could just swap the responsible style classes using .addStyleClass() and .removeStyleClass().
Not sure if it works, but thats the easiest possible fix I can think of that might be worth a try.
I would like to set multiple UI elements visible. There is one problem though. I have a lot of UI elements and it's been set up like this:
nameLanguageLabel.setVisible(true);
descriptionLabel.setVisible(true);
mainNameLabel.setVisible(true);
mainURLLabel.setVisible(true);
URLLanguageLabel.setVisible(true);
mainBodyLabel.setVisible(true);
filesLabel.setVisible(true);
fileTypeLabel.setVisible(true);
srcLabel.setVisible(true);
isHeaderImageLabel.setVisible(true);
mainDescriptionTxtField.setVisible(true);
mainIsHeaderImageTxtField.setVisible(true);
mainSrcTxtField.setVisible(true);
mainFileTypeTxtField.setVisible(true);
mainURLTxtField.setVisible(true);
mainNameTxtField.setVisible(true);
Is there a way to make the code shorter? It may be something I haven't noticed during the tutorials I've been doing. (It's not the same project).
http://code.makery.ch/library/javafx-8-tutorial/
All the elements are in a container. I've set it to visible false, and set it visible, whenever I need it. It's been reduced to this:
mainPane.setVisible(true);
I need to create a GWT application that handle the buying of films. So I have to show in a grid (not in a list, I don't like the view) these cell containing image and info about the film like this:( http://static.ipaditalia.com/wp-content/uploads/2012/11/mzl.sckskoqz.480x480-75.jpg ). I think that I need of a grid showing I think, to obtain something like but I wouldn't know to start. thanks for help!
You can use a simple FlowPanel as a container, and add each image with a float set to "left".
Alternatively, you can use a flex-box model with flex-flow: row wrap on a container.
You don't need any widgets for this. This is simple CSS, and it will give you the best performance and the smallest code size.
I hope to create a "NEW" listview like QML Exmaple with native Qt classes.
Exactly I want to make a listview which works like below.
It looks like a QML example but slightly differs. QListView has a limitation for it's layout, right? I want a hint for overcoming the problem.
You'd want to use GridView instead of ListView. That'll get you a step closer to making your UI look like what you have designed. However currently Qt Quick only supports fixed cell sizes of grid items, which means you won't be able to expand the cell size of just one item. All you can do is set up the cell size to fit the expanded item so that every grid item will take up as much space as it could possibly need. Then you can alter the dimensions of each item without worrying about fitting issues.