lib/Ext/field/Select.js
function(newOptions) {
        var store = this.getStore();

        if (!store) {
            this.setStore(true);
            store = this._store;
        }

        if (!newOptions) {
            store.clearData();
        }
        else {
            store.setData(newOptions);
            this.onStoreDataChanged(store);
        }
        return this;
    }
function(newOptions) {
        var store = this.getStore();

        if (!store) {
            this.setStore(true);
            store = this._store;
        }

        if (!newOptions) {
            store.clearData();
        }
        else {
            store.setData(newOptions);
            this.onStoreDataChanged(store);
        }
        return this;
    }
Updates the underlying `<options>` list with new values.

@param {Array} newOptions An array of options configurations to insert or append.

selectBox.setOptions([
{text: 'First Option',  value: 'first'},
{text: 'Second Option', value: 'second'},
{text: 'Third Option',  value: 'third'}
]).setValue('third');

__Note:__ option object member names should correspond with defined {@link #valueField valueField} and
{@link #displayField displayField} values.

@return {Ext.field.Select} this