KeyNumericInput

component fbx.ui.controller.KeyNumericInput

KeyNumericInput is an utility component able to handle decimal numeric input from keyboard. It features a timer in order to determine whether input digits are start of a new value, or continuation of typed one.

KeyNumericInput {
    onValueChanged: {
        console.log("Typing...", value);
    }

    onCommit: {
        console.log("Entered", value);
    }
}
property value

Integer value correponding to currently input value. Typed value gets directly reflected.

signal commit()

Signal raised when typed value has been stable for at least timeout ms. It should be considered valid.

property timeout

Time (in ms) after which typed value is considered final.

property typing

Whether users is curretly typing a new value. Typing resets to false after commit timeout.

method cancel()

Cancels pending input.