src/fieldwork/components/SelectBox.php
public function setPlaceholder ($placeholder = null)
    {
        if ($placeholder === false)
            $this->usePlaceholder = false;
        else {
            $this->setSelect2Options(array(
                self::SELECT2_OPTION_PLACEHOLDER => $placeholder === null ? $this->label : $placeholder
            ));
            $this->usePlaceholder = true;
        }
        return $this;
    }
public function setPlaceholder ($placeholder = null)
    {
        if ($placeholder === false)
            $this->usePlaceholder = false;
        else {
            $this->setSelect2Options(array(
                self::SELECT2_OPTION_PLACEHOLDER => $placeholder === null ? $this->label : $placeholder
            ));
            $this->usePlaceholder = true;
        }
        return $this;
    }
public function setPlaceholder ( $ placeholder = null ) { if ( $ placeholder === false ) $ this -> usePlaceholder = false ; else { $ this -> setSelect2Options ( array ( self :: SELECT2_OPTION_PLACEHOLDER => $ placeholder === null ? $ this -> label : $ placeholder ) ) ; $ this -> usePlaceholder = true ; } return $ this ; }
Determines the placeholder behaviour. Set to FALSE if the first option should be selected on default. Set to
NULL if the label should be used. Otherwise specify a placeholder.

@param null|boolean|string $placeholder

@return $this
Determines the placeholder behaviour . Set to FALSE if the first option should be selected on default . Set to NULL if the label should be used . Otherwise specify a placeholder .