Skip to content
This repository

Compare: Selections

Selections.md
... ... @@ -44,6 +44,8 @@ If *value* is not specified, returns the value of the specified attribute for th
44 44
45 45 The specified *name* may have a namespace prefix, such as `xlink:href`, to specify an "href" attribute in the XLink namespace. By default, D3 supports svg, xhtml, xlink, xml, and xmlns namespaces. Additional namespaces can be registered by adding to [d3.ns.prefix](Namespaces#wiki-prefix).
46 46
  47 +*name* can also be an Object of *name* and *value* attributes.
  48 +
47 49 <a name="classed" href="Selections#wiki-classed">#</a> selection.<b>classed</b>(<i>name</i>[, <i>value</i>])
48 50
49 51 This operator is a convenience routine for setting the "class" attribute; it understands that the "class" attribute is a set of tokens separated by spaces. Under the hood, it will use the [[classList|https://developer.mozilla.org/en/DOM/element.classList]] if available, for convenient adding, removing and toggling of CSS classes.
Something went wrong with that request. Please try again.