new VlCheckbox()

Description

De checkbox laat de gebruiker toe om een of meerdere opties te selecteren uit een lijst. Gebruik de checkbox in formulieren.

Properties
Name Type Description
data-vl-block boolean

Attribuut wordt gebruikt om ervoor te zorgen dat de checkbox getoond wordt als een block element en bijgevol de breedte van de parent zal aannemen.

data-vl-disabled boolean

Attribuut wordt gebruikt om te voorkomen dat de gebruiker de checkbox kan selecteren.

data-vl-error boolean

Attribuut wordt gebruikt om aan te duiden dat de checkbox verplicht is.

data-vl-label boolean

Attribuut wordt gebruikt om label te definiƫren via een attribuut ter vervanging van een slot element.

data-vl-name boolean

Attribuut wordt gebruikt om checkbox te identificeren.

data-vl-single boolean

Attribuut wordt gebruikt om alleen een checkbox te tonen zonder label.

data-vl-switch boolean

Attribuut wordt gebruikt om een checkbox variant te genereren met de stijl van een switch.

data-vl-value boolean

Attribuut wordt gebruikt om de checkbox waarde te bepalen.

Details

HTMLElement

Classes


new VlCheckbox()

Members


form

Description

Returns a reference to the parent

element.

Returns
Details

validity

Description

Returns the element's current validity state.

Returns
Details

validationMessage

Description

Returns a localized message that describes the validation constraints that the control does not satisfy (if any). This is the empty string if the control is not a candidate for constraint validation (willvalidate is false), or it satisfies its constraints. This value can be set by the setCustomValidity method.

Returns
Details

willValidate

Description

Returns whether the element is a candidate for constraint validation.

Returns
Details

checked

Description

Geeft de waarde van het checkbox input element.

Returns
Details

checked

Description

Zet de waarde van het checkbox input element.

Parameters
Name Type Description
value boolean
Details

Methods


formResetCallback()

Description

Callback called when the form is reset.

Details

toggle() → {void}

Description

Triggert een toggle van de checkbox zonder te klikken op de checkbox.

Returns
Details