SpreadJS Documentation
focus Method
Whether the Spread component has the focus. The default value is true.
Gets or sets whether the Spread component has the focus.
Syntax
var instance = new GcSpread.Sheets.Spread(host, options);
var value; // Type: any
value = instance.focus(focusIn);
function focus( 
   focusIn : boolean
) : any;

Parameters

focusIn
Whether the Spread component has the focus. The default value is true.
Example
This example sets focus to the Spread control.
$("#button1").click(function () {
spread.focus(true);
   });
See Also

Reference

Spread type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.