imports/vx/client/code/ux.js
/**
     * Lock any components bearing class lock-exiting-component.
     *
     * @param {boolean} locked True to lock, false to unlock.
     */
Lock any components bearing class lock-exiting-component.
@param {boolean} locked True to lock, false to unlock.
Lock any components bearing class lock - exiting - component . @param { boolean } locked True to lock false to unlock .
lockExitingComponents(locked) {
        $(".lock-exiting-component").each((index, element) => {
            const id = $(element).attr("id")
            if (!id) {
                OLog.error("ux.js lockExitingComponents element does not have attribute id")
                return
            }
            const component = UX.findComponentById(id)
            if (!component) {
                OLog.error(`ux.js lockExitingComponents element id=${id} is not a React component`)
                return
            }
            if (!component.setLocked) {
                OLog.error(`ux.js lockExitingComponents element id=${id} component does not expose setLocked method`)
                return
            }
            component.setLocked(locked)
            OLog.warn(`ux.js lockExitingComponents element id=${id} component *locked*`)
        })
    }
lockExitingComponents ( locked ) { $ ( ".lock-exiting-component" ) . each ( ( index , element ) => { const id = $ ( element ) . attr ( "id" ) if ( ! id ) { OLog . error ( "ux.js lockExitingComponents element does not have attribute id" ) return } const component = UX . findComponentById ( id ) if ( ! component ) { OLog . error ( ` ${ id } ` ) return } if ( ! component . setLocked ) { OLog . error ( ` ${ id } ` ) return } component . setLocked ( locked ) OLog . warn ( ` ${ id } ` ) } ) }
Lock any components bearing class lock-exiting-component.
Lock any components bearing class lock - exiting - component .