2016-03-05 17:53:34 -05:00
|
|
|
// #docregion
|
2016-05-03 08:06:32 -04:00
|
|
|
import { QuestionBase } from './question-base';
|
2016-03-05 17:53:34 -05:00
|
|
|
|
2016-06-07 19:06:25 -04:00
|
|
|
export class DropdownQuestion extends QuestionBase<string> {
|
2016-03-05 17:53:34 -05:00
|
|
|
controlType = 'dropdown';
|
2016-06-07 19:06:25 -04:00
|
|
|
options: {key: string, value: string}[] = [];
|
2016-03-05 17:53:34 -05:00
|
|
|
|
2016-06-07 19:06:25 -04:00
|
|
|
constructor(options: {} = {}) {
|
2016-03-05 17:53:34 -05:00
|
|
|
super(options);
|
|
|
|
this.options = options['options'] || [];
|
|
|
|
}
|
|
|
|
}
|