class_docstr: Event of a model update.
class_docstr_tok: ["Event","of","a","model","update","."]
docstr: Prevent the default action of this event.
  
  The default action is invoked at the end of the event dispatch.
  It's usually defined by whoever dispatches the event.
  
  This is similar to ``event.preventDefault()`` in JavaScript.
docstr_tok: ["Prevent","the","default","action","of","this","event",".","The","default","action","is","invoked","at","the","end","of","the","event","dispatch",".","It","'s","usually","defined","by","whoever","dispatches","the","event",".","This","is","similar","to","``","event.preventDefault","(",")","``","in","JavaScript","."]
code: def prevent_default(self):
      """Prevent the default action of this event.
  
      The default action is invoked at the end of the event dispatch.
      It's usually defined by whoever dispatches the event.
  
      This is similar to ``event.preventDefault()`` in JavaScript.
      """
      self._default_canceled = True
  
file_path: nni/nni/nas/execution/event.py
imports: from __future__ import annotations
  from enum import Enum
  from typing import ClassVar
  from dataclasses import dataclass
  from nni.nas.space import ExecutableModelSpace, ModelStatus
  from nni.typehint import TrialMetric
label_desc: Use image node_id 3 for calling the ModelEvent obj's underlying member method code with example usage: obj.prevent_default() without return types