Methods closest closest( element:  HTMLElement , selector:  string , context?:  HTMLElement ) :  null  |  HTMLElement  Defined in node_modules/@types/sortablejs/index.d.ts:485 Parameters element: HTMLElement  selector: string  Optional  context: HTMLElement Returns null  |  HTMLElement  css css( element:  HTMLElement ) :  CSSStyleDeclaration  css< K > ( element:  HTMLElement , prop:  K ) :  CSSStyleDeclaration [ K ]  css< K > ( element:  HTMLElement , prop:  K , value:  CSSStyleDeclaration [ K ] ) :  void  Defined in node_modules/@types/sortablejs/index.d.ts:443 Parameters Returns CSSStyleDeclaration  Defined in node_modules/@types/sortablejs/index.d.ts:450 Type parameters K:  number  |  keyof  CSSStyleDeclaration  Parameters element: HTMLElement  prop: K  Returns CSSStyleDeclaration [ K ]  Defined in node_modules/@types/sortablejs/index.d.ts:458 Type parameters K:  number  |  keyof  CSSStyleDeclaration  Parameters element: HTMLElement  prop: K  value: CSSStyleDeclaration [ K ]  Returns void  find find( context:  HTMLElement , tagName:  string , iterator?:  ( value:  HTMLElement , index:  number )  =>  void ) :  NodeListOf < HTMLElement >  Defined in node_modules/@types/sortablejs/index.d.ts:466 Parameters context: HTMLElement  tagName: string  Optional  iterator: ( value:  HTMLElement , index:  number )  =>  void ( value:  HTMLElement , index:  number ) :  void Parameters value: HTMLElement  index: number  Returns void  Returns NodeListOf < HTMLElement >  is is( element:  HTMLElement , selector:  string ) :  boolean  Defined in node_modules/@types/sortablejs/index.d.ts:477 Parameters element: HTMLElement  selector: string  Returns boolean  off off( element:  HTMLElement , event:  string , fn:  EventListenerOrEventListenerObject ) :  void  Defined in node_modules/@types/sortablejs/index.d.ts:437 Parameters element: HTMLElement  event: string  fn: EventListenerOrEventListenerObject  Returns void  on on( element:  HTMLElement , event:  string , fn:  EventListenerOrEventListenerObject ) :  void  Defined in node_modules/@types/sortablejs/index.d.ts:429 Parameters element: HTMLElement  event: string  fn: EventListenerOrEventListenerObject  Returns void  toggle Class toggle Class( element:  HTMLElement , name:  string , state:  boolean ) :  void  Defined in node_modules/@types/sortablejs/index.d.ts:493 Parameters element: HTMLElement  name: string  state: boolean  Returns void  Legend Namespace Variable Function Function with type parameter Type alias Type alias with type parameter Interface Interface with type parameter Settings Theme OS Light Dark 
For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.