Show or hide columns in Lister

crdate : 2008/05/13

by : Loredana Zeca

 in : Tips and Tricks, Tutorial

An interesting example of how using majix events to show or hide columns in renderlet:LISTER

There is a lot of interesting things that you can do with renderlet:LISTER.

So, one of them is to use some special effects to hide or show columns in lister.

For example, if you have two columns:

  1. first one contains the short description of something
  2. second one presents a long description of the same thing. But this description mustn't be displayed on page load.


So, what you can do is to create a renderlet:LISTER with two columns and to apply a majix event (for example "toggleBlind") on the first column to show the second one. You must also not forget to include the library for using "scriptaculous" class, like that:

	<meta>
...
<libs>scriptaculous</libs>
</meta>


Click here to see an online example of using this kind of event:

Or you can directly get the entire code here:

« Back to list