UNPKG

survey-core

Version:

survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.

52 lines (51 loc) 1.51 kB
import { ItemValue } from "./itemvalue"; import { QuestionCheckboxBase } from "./question_baseselect"; import { LocalizableString } from "./localizablestring"; export declare class ButtonGroupItemValue extends ItemValue { protected typeName: string; constructor(value: any, text?: string, typeName?: string); iconName: string; iconSize: number; /** * By default item caption is visible. * Set it 'false' to hide item caption. */ showCaption: boolean; getType(): string; } /** * A Model for a button group question. */ export declare class QuestionButtonGroupModel extends QuestionCheckboxBase { constructor(name: string); getType(): string; protected getItemValueType(): string; supportOther(): boolean; } export declare class ButtonGroupItemModel { question: QuestionButtonGroupModel; item: ItemValue; index: number; constructor(question: QuestionButtonGroupModel, item: ItemValue, index: number); get value(): any; get iconName(): string; get iconSize(): string | number; get caption(): LocalizableString; get showCaption(): any; get isRequired(): boolean; get selected(): boolean; get readOnly(): boolean; get name(): string; get id(): string; get hasErrors(): boolean; get describedBy(): string; private get labelClass(); get css(): { label: string; icon: any; control: any; caption: any; decorator: any; }; onChange(): void; }