MainPanel.Search

Syntax

Search: function (sender, args)

Parameters

sender. Event source.

args. Information on the event. Arguments: Value - searched value.

Description

The Search event occurs after pressing the ENTER key in the search field.

Example

To implement the example it is necessary to create a drop-down panel with menu named mainPanel (see Example of Creating the MainPanel Component). Add an event handler of the ENTER button clicking in the search line:

// Add an event handler of the ENTER button clicking in the search line
mainPanel.Search.add(function (sender, args) {
    console.log("Required value: " + args.Value);
});

After the text input in the search line and the ENTER key pressing, the console displays a message about required value and the panel will be hidden:

Require value: Item 1

See also:

MainPanel