You haven't supplied the code you have, but the thing is about modifying objects material.
Given a mesh (added to the scene already), you can do something like:
// Handler is pseudo, you might have your own
mouseDownHandler(){
object.material.wireframe = true;
}
mouseUpHandler(){
object.material.wireframe = false;
}
if nothing happens, then try console.log(object);
And then in Chrome Devtools (or Firefox Firebug) you can see your object tree. You'll see were the 'wireframe' option is. Try modifying it right in your console, it should update instantly