kopia lustrzana https://github.com/shoelace-style/shoelace
update docs comment
rodzic
e2d2f5d670
commit
1fbb809057
|
@ -220,7 +220,7 @@ export default class SlButton extends ShoelaceElement implements ShoelaceFormCon
|
|||
return true;
|
||||
}
|
||||
|
||||
/** Sets a custom validation message. If `message` is not empty, the field will be considered invalid. */
|
||||
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
||||
setCustomValidity(message: string) {
|
||||
if (this.isButton()) {
|
||||
(this.button as HTMLButtonElement).setCustomValidity(message);
|
||||
|
|
|
@ -687,7 +687,7 @@ export default class SlColorPicker extends ShoelaceElement implements ShoelaceFo
|
|||
return this.input.reportValidity();
|
||||
}
|
||||
|
||||
/** Sets a custom validation message. If `message` is not empty, the field will be considered invalid. */
|
||||
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
||||
setCustomValidity(message: string) {
|
||||
this.input.setCustomValidity(message);
|
||||
this.formControlController.updateValidity();
|
||||
|
|
|
@ -373,7 +373,7 @@ export default class SlInput extends ShoelaceElement implements ShoelaceFormCont
|
|||
return this.input.reportValidity();
|
||||
}
|
||||
|
||||
/** Sets a custom validation message. If `message` is not empty, the field will be considered invalid. */
|
||||
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
||||
setCustomValidity(message: string) {
|
||||
this.input.setCustomValidity(message);
|
||||
this.formControlController.updateValidity();
|
||||
|
|
|
@ -236,7 +236,7 @@ export default class SlRange extends ShoelaceElement implements ShoelaceFormCont
|
|||
return this.input.reportValidity();
|
||||
}
|
||||
|
||||
/** Sets a custom validation message. If `message` is not empty, the field will be considered invalid. */
|
||||
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
||||
setCustomValidity(message: string) {
|
||||
this.input.setCustomValidity(message);
|
||||
this.formControlController.updateValidity();
|
||||
|
|
|
@ -608,7 +608,7 @@ export default class SlSelect extends ShoelaceElement implements ShoelaceFormCon
|
|||
return this.valueInput.reportValidity();
|
||||
}
|
||||
|
||||
/** Sets a custom validation message. If `message` is not empty, the field will be considered invalid. */
|
||||
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
||||
setCustomValidity(message: string) {
|
||||
this.valueInput.setCustomValidity(message);
|
||||
this.formControlController.updateValidity();
|
||||
|
|
|
@ -145,7 +145,7 @@ export default class SlSwitch extends ShoelaceElement implements ShoelaceFormCon
|
|||
return this.input.reportValidity();
|
||||
}
|
||||
|
||||
/** Sets a custom validation message. If `message` is not empty, the field will be considered invalid. */
|
||||
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
||||
setCustomValidity(message: string) {
|
||||
this.input.setCustomValidity(message);
|
||||
this.formControlController.updateValidity();
|
||||
|
|
|
@ -261,7 +261,7 @@ export default class SlTextarea extends ShoelaceElement implements ShoelaceFormC
|
|||
return this.input.reportValidity();
|
||||
}
|
||||
|
||||
/** Sets a custom validation message. If `message` is not empty, the field will be considered invalid. */
|
||||
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
||||
setCustomValidity(message: string) {
|
||||
this.input.setCustomValidity(message);
|
||||
this.formControlController.updateValidity();
|
||||
|
|
Ładowanie…
Reference in New Issue