Msieprawski\ResourceTable\Helpers\Column::_optionsHTML PHP Method

_optionsHTML() private method

Returns HTML with select options for searchable column
private _optionsHTML ( ) : string
return string
    private function _optionsHTML()
    {
        $result = '';
        foreach ($this->options() as $key => $label) {
            $selected = ResourceTable::getSearchValue($this->index()) == $key ? ' selected="selected"' : '';
            $result .= '<option value="' . $key . '"' . $selected . '>' . $label . '</option>';
        }
        return $result;
    }