|  | HTML |  |

|  | Splash! |  |

|  | PostScript |  |

| Template Toolkit Examples: Splash! Library: Menus |

| bar

|  | menu |  |

menubar |

# Menus

The splash/menu component generates a menu as a series of splash/button elements.

Source #1:

    [% buttons = [
        { link => 'buttons.html', text => 'Buttons' }
        { link => 'menus.html',   text => 'Menus'   }
        { link => 'tabs.html',    text => 'Tabs'    }
       ]
    %]

    [% PROCESS splash/menu %]

Output #1:

| Buttons |

| Menus |

| Tabs |

Source #2:

    [% PROCESS splash/menu select=2 %]

Output #2:

| Buttons |

| Menus |

| Tabs |

Source #3:

    [% PROCESS splash/menu select=2 width='60%' %]

Output #3:

| Buttons |

| Menus |

| Tabs |

Source #4:

    [% splash.style.default.col.text = 'black' %]

    [% PROCESS splash/menu select=3 width='60%' align='right' %]

Output #4:

| Buttons |

| Menus |

| Tabs |

Source #5:

    <div align="right">
    [% PROCESS splash/menu select=2 width='60%' %]
    </div>

Output #5:

| Buttons |

| Menus |

| Tabs |