static optionsForKey (key) {
        if (!settingsSection || !settingsSection.length) return null;
        var question = settingsSection.find(function (question) {
            return (question.key === key);
        });
        if (!question || !question.values) return null;
        var valuesKey = 'default';
        if (question.dependsOn) {
            var prevSelection = currentVals[question.dependsOn];
            if (question.values[prevSelection]) valuesKey = prevSelection;
        }
        if (!question.values[valuesKey] || !question.values[valuesKey].length) return null;
        return question.values[valuesKey];
    }
/**
     * Get array of posible value choices for given question.
     * If question depends on a previous response, use that response to
     * determine which value choices to show.
     * @param {string} key indicates which options question to use
     */
Get array of posible value choices for given question.
If question depends on a previous response, use that response to
determine which value choices to show.
@param {string} key indicates which options question to use
Get array of posible value choices for given question . If question depends on a previous response use that response to determine which value choices to show . @param { string } key indicates which options question to use
static optionsForKey (key) {
        if (!settingsSection || !settingsSection.length) return null;
        var question = settingsSection.find(function (question) {
            return (question.key === key);
        });
        if (!question || !question.values) return null;
        var valuesKey = 'default';
        if (question.dependsOn) {
            var prevSelection = currentVals[question.dependsOn];
            if (question.values[prevSelection]) valuesKey = prevSelection;
        }
        if (!question.values[valuesKey] || !question.values[valuesKey].length) return null;
        return question.values[valuesKey];
    }
static optionsForKey ( key ) { if ( ! settingsSection || ! settingsSection . length ) return null ; var question = settingsSection . find ( function ( question ) { return ( question . key === key ) ; } ) ; if ( ! question || ! question . values ) return null ; var valuesKey = 'default' ; if ( question . dependsOn ) { var prevSelection = currentVals [ question . dependsOn ] ; if ( question . values [ prevSelection ] ) valuesKey = prevSelection ; } if ( ! question . values [ valuesKey ] || ! question . values [ valuesKey ] . length ) return null ; return question . values [ valuesKey ] ; }
Get array of posible value choices for given question.
Get array of posible value choices for given question .