New to Kendo UI for jQuery? Start a free 30-day trial

PrefixOptions

configuration

The configuration for the prefix adornment of the component.

<input id="numerictextbox" />
<script>
    $("#numerictextbox").kendoNumericTextBox({
        prefixOptions: {
            template: () => `${kendo.ui.icon("search")}`
        }
    });
</script>
String|Object

Defines the name for an existing icon in a Kendo UI theme or SVG content

Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

<input id="numerictextbox" />
<script>
    $("#numerictextbox").kendoNumericTextBox({
        prefixOptions: {
            icon:"search"
        }
    })
</script>

If set to false, the prefix adornment will not have a separator.

Default: true

<input id="numerictextbox" />
<script>
    $("#numerictextbox").kendoNumericTextBox({
        prefixOptions: {
            template: () => `${kendo.ui.icon("search")}`,
            separator: false
        }
    })
</script>

prefixOptions.template

String|Function

The template for the prefix adornment of the component.

<input id="numerictextbox" />
<script>
    $("#numerictextbox").kendoNumericTextBox({
        prefixOptions: {
            template: () => `${kendo.ui.icon("search")}`
        }
    })
</script>