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

setConstraint() public method

Set wether the element should be constrainted in one direction
public setConstraint ( $value )
    public function setConstraint($value)
    {
        $this->setViewState('Constraint', TPropertyValue::ensureEnum($value, 'Prado\\Web\\UI\\ActiveControls\\DraggableConstraint'), TDraggableConstraint::None);
    }