interface Utils { closest ( element : HTMLElement ,
selector : string ,
context ?: HTMLElement ) : null | HTMLElement ; css ( element : HTMLElement ) : CSSStyleDeclaration ; css < K > ( element : HTMLElement ,
prop : K ) : CSSStyleDeclaration [ K ] ; css < K > ( element : HTMLElement ,
prop : K ,
value : CSSStyleDeclaration [ K ] ) : void ; find ( context : HTMLElement ,
tagName : string ,
iterator ?: ( ( value : HTMLElement ,
index : number ) => void ) ) : NodeListOf < HTMLElement > ; is ( element : HTMLElement ,
selector : string ) : boolean ; off ( element : HTMLElement ,
event : string ,
fn : EventListenerOrEventListenerObject ) : void ; on ( element : HTMLElement ,
event : string ,
fn : EventListenerOrEventListenerObject ) : void ; toggleClass ( element : HTMLElement ,
name : string ,
state : boolean ) : void ; } Defined in node_modules/@types/sortablejs/index.d.ts:422 Methodsclosest closest ( element , selector , context ? ) : null | HTMLElement Parameters element : HTMLElement selector : string Optional
context : HTMLElement Returns null | HTMLElement Defined in node_modules/@types/sortablejs/index.d.ts:485 css css ( element ) : CSSStyleDeclaration Returns CSSStyleDeclaration Defined in node_modules/@types/sortablejs/index.d.ts:443 css < K > ( element , prop ) : CSSStyleDeclaration [ K ] Type Parameters K extends keyof CSSStyleDeclaration Parameters element : HTMLElement prop : K Returns CSSStyleDeclaration [ K ] Defined in node_modules/@types/sortablejs/index.d.ts:450 css < K > ( element , prop , value ) : void Type Parameters K extends keyof CSSStyleDeclaration Parameters element : HTMLElement prop : K value : CSSStyleDeclaration [ K ] Returns void Defined in node_modules/@types/sortablejs/index.d.ts:458 find find ( context , tagName , iterator ? ) : NodeListOf < HTMLElement > Parameters context : HTMLElement tagName : string Optional
iterator : ( ( value : HTMLElement , index : number ) => void ) ( value , index ) : void Parameters value : HTMLElement index : number Returns void Returns NodeListOf < HTMLElement > Defined in node_modules/@types/sortablejs/index.d.ts:466 is is ( element , selector ) : boolean Parameters element : HTMLElement selector : string Returns boolean Defined in node_modules/@types/sortablejs/index.d.ts:477 off off ( element , event , fn ) : void Parameters element : HTMLElement event : string fn : EventListenerOrEventListenerObject Returns void Defined in node_modules/@types/sortablejs/index.d.ts:437 on on ( element , event , fn ) : void Parameters element : HTMLElement event : string fn : EventListenerOrEventListenerObject Returns void Defined in node_modules/@types/sortablejs/index.d.ts:429 toggle Class toggle Class ( element , name , state ) : void Parameters element : HTMLElement name : string state : boolean Returns void Defined in node_modules/@types/sortablejs/index.d.ts:493
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.