Skip to main content

mb-percent

Properties

PropertyAttributeTypeDefaultDescription
datadata{ denominator: number; numerator: number; type: number; } | undefined"undefined"Data of the element. Setting this will emit an input event automatically.
datatypedatatypestring | undefinedAn internal representation of type to handle serializing
isMbElementbooleantrue
labellabelstring | undefinedOptional label for the element
maxmaxstring"100"
minminstring"0"
pathpathstringPath of the data element. Use the VSCode extension to get the appropriate paths
requiredrequiredbooleanfalse
stepstepstring
typetypestring"percent"

Methods

MethodTypeDescription
getStep(): string | undefined
handlePathChange(oldPath: string, newPath: string): void
reportValidity(): booleanFunction 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