Skip to main content

mb-input

An input element to capture text

Properties

PropertyAttributeTypeDefaultDescription
datadatastringData of the element. Setting this will emit an input event automatically.
datatypedatatypestring | undefinedAn internal representation of type to handle serializing
disableddisabledboolean
isMbElementbooleantrue
labellabelstring""Optional label for the element
maxmaxnumber
maxlengthmaxlengthnumber
minminnumber
minlengthminlengthnumber
pathpathstringPath of the data element. Use the VSCode extension to get the appropriate paths
requiredrequiredbooleanfalse
textareatextareabooleanfalse
typetypestring

Methods

MethodTypeDescription
handleInput(e: CustomEvent<any>): void
handlePathChange(oldPath: string, newPath: string): void
reportValidity(): anyFunction to validate the element during form submit

Events

EventDescription
mb-connectDispatched when the component connects
mb-dependencyDispatched if dependencies are needed from an external or parent source
mb-disconnectDispatched when the component disconnects
mb-inputDispatched when the input changes