Skip to content

Commit

Permalink
feat(checkbox): add custom validation message
Browse files Browse the repository at this point in the history
  • Loading branch information
blm768 committed Aug 2, 2024
1 parent 057c132 commit 27bd868
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/oruga/src/components/checkbox/Checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,22 @@ const props = defineProps({
type: String,
default: () => getOption("checkbox.autocomplete", "off"),
},
/** Enable html 5 native validation */
/** Enable HTML 5 native validation */
useHtml5Validation: {
type: Boolean,
default: () => getOption("useHtml5Validation", true),
},
/** Custom HTML 5 validation error to set on the form control */
customValidity: {
type: [String, Function] as PropType<
| string
| ((
currentValue: boolean | null | undefined,
state: ValidityState,
) => string)
>,
default: "",
},
// class props (will not be displayed in the docs)
/** Class of the root element */
rootClass: {
Expand Down

0 comments on commit 27bd868

Please sign in to comment.