imports/vx/client/code/ux.js
/**
     * Capture the state of the drop zone prior to cancel.
     *
     * @param {object} $entityTarget jQuery element representing drop target.
     * @return {object} Original state bearing scrollTop and display.
     */
Capture the state of the drop zone prior to cancel.
@param {object} $entityTarget jQuery element representing drop target.
@return {object} Original state bearing scrollTop and display.
Capture the state of the drop zone prior to cancel . @param { object } $entityTarget jQuery element representing drop target . @return { object } Original state bearing scrollTop and display .
captureTargetState($entityTarget) {
        const scrollTop = $entityTarget.scrollTop()
        const elementObjects = $entityTarget.children(".list-group-item").toArray().map(element => {
            const id = $(element).attr("id")
            const display = $(element).css("display") || ""
            return { id, display }
        })
        return { scrollTop, elementObjects }
    }
captureTargetState ( $entityTarget ) { const scrollTop = $entityTarget . scrollTop ( ) const elementObjects = $entityTarget . children ( ".list-group-item" ) . toArray ( ) . map ( element => { const id = $ ( element ) . attr ( "id" ) const display = $ ( element ) . css ( "display" ) || "" return { id , display } } ) return { scrollTop , elementObjects } }
Capture the state of the drop zone prior to cancel.
Capture the state of the drop zone prior to cancel .