setFocus

Sets the cursor focus to a specific control and optionally selects the existing text.

Parameters

  1. controlId - the name of the control to set the focus to

  2. select - (optional) if set to true, the existing text in the control is selected. if empty or false, the cursor is placed behind the not selected text

Example Usages

   brixxApi.setFocus("adrName"); //set focus and palce cursor after existing text
   brixxApi.setFocus("adrName", true); //set focus and select the existing text

Last updated