public interface DatumFunction<T>
This function must be passed to mutator functions of Selection
when you knows that nodes are not bound to any data.
Modifier and Type | Method and Description |
---|---|
T |
apply(com.google.gwt.dom.client.Element context,
Value d,
int index)
Apply the function for the given
Element at the specified index
of the Selection mapped to the given Datum . |
T apply(com.google.gwt.dom.client.Element context, Value d, int index)
Element
at the specified index
of the Selection
mapped to the given Datum
.
Note that if no datum is mapped to the element, Datum#isUndefined()
will return true.
context
- the current element, may be irrelevant or null in some context.d
- the datumindex
- the index of the element in the selectionCopyright © 2017 gwt-d3. All rights reserved.