mmenu.js : Is adding support for accordion style collapsable/expandable menus possible? - mmenu

From what I understand this isn't possible out of the box with mmenu or any plugin for it. What I need is an easy way to format the submenus so that they are clickable and collapse/expand, as is clear in the screenshot below. If I'm wrong on this and there are any examples of a plugin/css that will easily do this I'd love to know.

I've discovered that this is indeed possible, simply by adding the class "Vertical" to any child elements.

Related

AceEdit collapsing dynamically

I wish my AceEdit displaying all the uppermost classes and functions collapsed when the source code is loaded (or a "collapse all" button was pressed).
I think i missed somewhat, shouldn't it be easy?
Currently ace only provides options to foldAll and foldOther
if foldAll hides too much you can use
editor.session.foldAll();
editor.session.unfold([...Array of ranges to not hide]);
If that doesn't work for you and you think this is a common functionality in other editors you can create an issue here

Treeviews with Glade (Gtk Gui editor)

I'm looking for a way to make a tree with glade.
I've already found how to manage lists with all kind of stuff in it, but I can't figure how to properly let an element have childs. I tried by going into the hierarchy tab, and then drag columns and cellrenderers into some others. They move for one second, and then get replaced where they was.
I also tried that kind of drag'n'drop thing on the other "Columns" and "Data" widgets on glade, but it doesn't work either :(.
Does someone have a solution for that? Is it even possible only with Glade?
I hope i'm clear with my problem.
PS : I'm using Glade 3.12.1.
Which version of glade do you use? Did you try to right-click on the treeview and then edit?
Right-click on the label then you can choose the type of child you want to add.

Is it possible to customize a CPToolbar in Cappuccino

I may need to change toolbar background, heading font and position.
Is it possible to do that with the standard CPToolbar? I was looking through the ThemeDescriptors.j, and there is nothing about a Toolbar.
It seams not so difficult to create my own. Should I go that way?
The toolbar isn't themeable as is (although, feel free to implement that for us. :) )
That said, you could do something like this depending on what exactly you want to do…
https://github.com/cappuccino/issues/blob/master/Client/AppController.j#L273

iPad slidable right hand side

How did they do it? Look at these images:
As you can see you can slide the right panel to the left and back. Is that UISplitViewController?
That's definitely a custom view/controller. The stock split view is what it is. Although I think Matt Gammell cooked up a replacement split view that let's you drag the split around, it only changes the proportional size or visibility of your two views. It would take some additional customization to give it this kind of look and feel. I don't have the URL handy though, I'm sorry.
I don't know if you still need this, but you can check this open source class called IIViewDeckController available in github - it's exactly what you need. You can set a right and a left view, add shadows, customize tap or slide interactivity.
It contains a example project so you can understand how to program all properties.

Is there a simple way to combine a text and icon in an NSCell in Cocoa?

I'm trying to create a very simple selection list widget based on NSOutlineView. However, I'm having a hard time figuring out how to display an icon and a label right next to it, which is really the expected behavior in all the mainstream implementations of that kind of widget out there (iTunes, mail, Finder,...).
So far I am just binding two separate cells, but then when I'm expanding the tree, the icon cell grows larger and a gap appears between the icon and its accompanying label. I know I can probably overcome this problem by extending NSCell and provide a custom class, but as what I'm trying to achieve is really the standard thing, I can't be resigned to accept that there isn't a simpler solution.
Candide
Sadly, there isn't a 'text and icon' cell that you can just use, fresh out of the box as you would like. However, when I was working on a project, I found that Apple released some sample code that implements this, since it is such a common idiom.
This can be found here, specifically ImageAndTextCell.h/m
It can help teach you about UI customization by reading through this example, but scratching that, just dropping the ImageAndTextCell straight into your project should do just fine.
You need to create ImageAndTextcell to combine text and icon..
you can create ImageAndTextcell like this Sample Project

Resources