vuetning
Version:
<p align="center"> <img width="160"src="https://s3.amazonaws.com/arcthos.com/vuetning/logo.svg"> </p>
117 lines (116 loc) • 3.04 kB
TypeScript
import { PropType } from "vue";
import { ValidationError } from "../slds-form-element/validation-error";
import { Option } from "../commons/option.ts";
declare const _default: import("vue").DefineComponent<{
/**
* Indicates whether the radio group is disabled.
*/
disabled: BooleanConstructor;
/**
* Array of error objects from vuelidate.
*/
errors: {
type: PropType<ValidationError[]>;
default: () => ValidationError[];
};
/**
* Radio group label.
*/
label: StringConstructor;
/**
* Input value.
*/
modelValue: any;
/**
* Radio group options.
*/
options: {
type: PropType<Option[]>;
default: () => Option[];
};
/**
* Indicates whether this label's radio group is required.
*/
required: BooleanConstructor;
/**
* Indicates whether the component should be displayed from right to left.
*/
rightToLeft: BooleanConstructor;
/**
* Indicates whether the radio group is stacked among other inputs.
*/
stacked: BooleanConstructor;
/**
* Tooltip text.
* When using the tooltip slot this prop is ignored.
*/
tooltip: StringConstructor;
}, unknown, unknown, {
/**
* Sets the component direction according to the "right to left" prop.
*/
direction(): string;
/**
* Bindable form element attributes.
*/
formElementAttributes(): Record<string, unknown>;
}, {
/**
* Handles the click event on the radio option.
* @param value The fired event.
*/
handleUpdateModelValue(value: string): void;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
/**
* Indicates whether the radio group is disabled.
*/
disabled: BooleanConstructor;
/**
* Array of error objects from vuelidate.
*/
errors: {
type: PropType<ValidationError[]>;
default: () => ValidationError[];
};
/**
* Radio group label.
*/
label: StringConstructor;
/**
* Input value.
*/
modelValue: any;
/**
* Radio group options.
*/
options: {
type: PropType<Option[]>;
default: () => Option[];
};
/**
* Indicates whether this label's radio group is required.
*/
required: BooleanConstructor;
/**
* Indicates whether the component should be displayed from right to left.
*/
rightToLeft: BooleanConstructor;
/**
* Indicates whether the radio group is stacked among other inputs.
*/
stacked: BooleanConstructor;
/**
* Tooltip text.
* When using the tooltip slot this prop is ignored.
*/
tooltip: StringConstructor;
}>>, {
required: boolean;
disabled: boolean;
errors: ValidationError[];
stacked: boolean;
modelValue: any;
options: Option[];
rightToLeft: boolean;
}, {}>;
export default _default;