Skip to content

Instantly share code, notes, and snippets.

Last active February 9, 2016 01:00
What would you like to do?
Expandable Menu
license: gpl-3.0
<!DOCTYPE html>
<meta charset="utf-8">
<script src="//"></script>
var data = [
{name: "foo", links: ["a", "b", "c"]},
{name: "bar", links: ["d", "e", "f"]}
var ul ="ul");
.text(function(d) { return; })
.on("click", expand);
function expand(d) {
.on("click", null)
.text(function(d) { return d; });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment