component InputGroup { props { @event input = function @event change = function @event focus = function @event blur = function @event submit = function @event action = function size = "default" color = "primary" id = "" name = "" label = "Input group" hiddenLabel = false value = "" placeholder = "" type = "text" startText = "" endText = "" icon = "" iconPosition = "start" actionLabel = "" helperText = "" cornerHint = "" error = "" inline = false variant = "normal" readonly = false disabled = false required = false class = "" } functions { function emitField(nameEvent, sourceEvent) { sourceEvent.stopPropagation(); $emit(nameEvent, { value: sourceEvent.currentTarget.value, name: name, sourceEvent: sourceEvent }) } function handleKeydown(sourceEvent) { if (sourceEvent.key === "Enter") { sourceEvent.stopPropagation(); $emit("submit", { value: sourceEvent.currentTarget.value, name: name, sourceEvent: sourceEvent }) } } function handleAction(sourceEvent) { $emit("action", { name: name, sourceEvent: sourceEvent }) } } view {
} }