docstr: Integer code for the button that was pressed on the mouse to trigger
  the event
  
  - 0: Main button pressed, usually the left button or the
       un-initialized state
  - 1: Auxiliary button pressed, usually the wheel button or the middle
       button (if present)
  - 2: Secondary button pressed, usually the right button
  - 3: Fourth button, typically the Browser Back button
  - 4: Fifth button, typically the Browser Forward button
  
  Returns
  -------
  int
docstr_tok: ["Integer","code","for","the","button","that","was","pressed","on","the","mouse","to","trigger","the","event","-","0",":","Main","button","pressed",",","usually","the","left","button","or","the","un-initialized","state","-","1",":","Auxiliary","button","pressed",",","usually","the","wheel","button","or","the","middle","button","(","if","present",")","-","2",":","Secondary","button","pressed",",","usually","the","right","button","-","3",":","Fourth","button",",","typically","the","Browser","Back","button","-","4",":","Fifth","button",",","typically","the","Browser","Forward","button","Returns","--","--","--","-","int"]
code: def button(self):
      """
      Integer code for the button that was pressed on the mouse to trigger
      the event
  
      - 0: Main button pressed, usually the left button or the
           un-initialized state
      - 1: Auxiliary button pressed, usually the wheel button or the middle
           button (if present)
      - 2: Secondary button pressed, usually the right button
      - 3: Fourth button, typically the Browser Back button
      - 4: Fifth button, typically the Browser Forward button
  
      Returns
      -------
      int
      """
      return self._button
  
imports: from __future__ import absolute_import
  from plotly.utils import _list_repr_elided
label_desc: Use image node_id 7 for calling the InputDeviceState obj's underlying member method code with example usage: obj.button() and returns: self