imports/vx/client/code/ux.js
/**
     * Initialize placeholder display setting for jQuery UI.
     *
     * @param {object} ui jQuery UI object.
     * @param {string} droppableClassName Droppable class name.
     * @param {boolean} horizontal Horizontal list.
     */
Initialize placeholder display setting for jQuery UI.
@param {object} ui jQuery UI object.
@param {string} droppableClassName Droppable class name.
@param {boolean} horizontal Horizontal list.
Initialize placeholder display setting for jQuery UI . @param { object } ui jQuery UI object . @param { string } droppableClassName Droppable class name . @param { boolean } horizontal Horizontal list .
initPlaceholder(ui, droppableClassName, horizontal) {
        const $parent = ui.placeholder.parent()
        const parentDroppable = $parent.hasClass(droppableClassName)
        const listGroup = $parent.hasClass("list-group")
        const emptyList = $parent.hasClass("empty-list")
        const actualList = listGroup && !emptyList
        const blockType = (horizontal ? "inline-block" : "block")
        const css = {}
        const height = `${ui.helper.outerHeight()}px`
        css.display = parentDroppable && actualList ? blockType : "none"
        css.height = height
        css["min-height"] = height
        css["max-height"] = height
        ui.placeholder.css(css)
    }
initPlaceholder ( ui , droppableClassName , horizontal ) { const $parent = ui . placeholder . parent ( ) const parentDroppable = $parent . hasClass ( droppableClassName ) const listGroup = $parent . hasClass ( "list-group" ) const emptyList = $parent . hasClass ( "empty-list" ) const actualList = listGroup && ! emptyList const blockType = ( horizontal ? "inline-block" : "block" ) const css = { } const height = ` ${ ui . helper . outerHeight ( ) } ` css . display = parentDroppable && actualList ? blockType : "none" css . height = height css [ "min-height" ] = height css [ "max-height" ] = height ui . placeholder . css ( css ) }
Initialize placeholder display setting for jQuery UI.
Initialize placeholder display setting for jQuery UI .