MCPcopy Create free account
hub / github.com/neomjs/neo / onButtonClick

Method onButtonClick

src/filter/ToggleOperatorsButton.mjs:88–93  ·  view source on GitHub ↗

* @param {Object} data

(data)

Source from the content-addressed store, hash-verified

86 * @param {Object} data
87 */
88 onButtonClick(data) {
89 let me = this,
90 index = (me.operators.indexOf(data.component.text) + 1) % me.operators.length;
91
92 me.value = me.operators[index]
93 }
94}
95
96export default Neo.setupClass(ToggleOperatorsButton);

Callers

nothing calls this directly

Calls 1

indexOfMethod · 0.45

Tested by

no test coverage detected