survey-core
Version:
A framework-independent core of the SurveyJS Form Library that works with rendering packages. Use it to integrate dynamic, interactive JSON-based forms and surveys into your app, collect user responses, and send them to your own database.
42 lines (41 loc) • 1.63 kB
TypeScript
import { ChoiceItem, QuestionCheckboxBase } from "./question_baseselect";
import { ItemValue } from "./itemvalue";
import { Action } from "./actions/action";
/**
* A class that describes the Radio Button Group question type.
*
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-radiogroup/ (linkStyle))
*/
export declare class QuestionRadiogroupModel extends QuestionCheckboxBase {
constructor(name: string);
protected getDefaultItemComponent(): string;
getType(): string;
supportElementsInChoice(): boolean;
protected getFirstInputElementId(): string;
/**
* Returns the selected choice item. If no item is selected, returns `null`.
*/
get selectedItem(): ChoiceItem;
/**
* Specifies whether to display a button that clears the question value.
*
* Default value: `false`
*/
get allowClear(): boolean;
set allowClear(val: boolean);
/**
* @deprecated Use the [`allowClear`](https://surveyjs.io/form-library/documentation/api-reference/radio-button-question-model#allowClear) property instead.
*/
get showClearButton(): boolean;
set showClearButton(val: boolean);
get canShowClearButton(): boolean;
get clearButtonCaption(): string;
supportAutoAdvance(): boolean;
getConditionJson(operator?: string, path?: string): any;
protected setNewComment(newValue: string): void;
clickItemHandler(item: ItemValue): void;
protected isOtherValueUnused(): boolean;
protected getDefaultTitleActions(): Array<Action>;
get isNewA11yStructure(): boolean;
get a11y_input_ariaRole(): string;
}