Home

Awesome

purescript-halogen-menu

Latest release Build status

A reusable halogen component that presents an interactive menu.

HTML

Menus are rendered as unordered lists of submenus which can be selected and dismissed. Selected submenus are also rendered as unordered lists.

Here is an example of a rendered menu with the first submenu selected.

<ul><li><button>Color</button><ul><li><button>Load color</button></li><li><button>Save color</button></li></ul></li><li><div><button>Edit</button></div></li></ul>

Guide

Installing purescript-halogen-menu

Rendering a menu

Dismissing submenus when onclick events are triggered outside of a menu component

Making a menu perform actions

Styling a menu

Module documentation

Module documentation is published on Pursuit.

Example

An example Halogen application which uses purescript-halogen-menu is available here.