Prado\Web\UI\ActiveControls\TDraggable::setGhosting PHP Method

setGhosting() public method

Defaults to false Since 3.2, Ghosting can be set to one of the value of {@link TDraggableGhostingOptions} enumeration. o "True" or "Ghosting" means standard pre-3.2 ghosting mechanism o "SuperGhosting" use the Superghosting patch by Christopher Williams, which allow elements to be dragged from an scrollable list o "False" or "None" means no Ghosting options
public setGhosting ( $value )
    public function setGhosting($value)
    {
        if (strcasecmp($value, 'true') == 0 || $value === true) {
            $value = TDraggableGhostingOptions::Ghosting;
        } elseif (strcasecmp($value, 'false') == 0 || $value === false) {
            $value = TDraggableGhostingOptions::None;
        }
        $this->setViewState('Ghosting', TPropertyValue::ensureEnum($value, 'Prado\\Web\\UI\\ActiveControls\\TDraggableGhostingOptions'), TDraggableGhostingOptions::None);
    }