// Whether the first element is selected
ele.selected(): booleanWhether the first element is selected.
Returns
booleantrue when selected
eles.selected — Collection > Selection. Cytoscape.js signatures, parameters and return contract.
eles.selected — Collection › Selection
Preview · Collection › Selection
Read in the complete API reference · All API members
// Whether the first element is selected
ele.selected(): booleanWhether the first element is selected.
booleantrue when selected