mySelection.classed( name, setFlag ) in D3.js
Add/remove a CSS class from the selection.
Arguments
name | type | description |
---|---|---|
name | String | |
setFlag | Boolean | Whether to add or remove the class name. If this parameter is not a boolean it is forced to one. |
- Return Type
- Selection
Description
For more details see https://github.com/mbostock/d3/wiki/Selections#wiki-classed.
See Also
- Selection.classed(name)
- Selection.classed(name,func)