SpreadJS Documentation
FormulaTextBox class
GC.Spread.Sheets.FormulaTextBox Namespace : FormulaTextBox class
Represents a formula text box.
Syntax
var instance = new GC.Spread.Sheets.FormulaTextBox.FormulaTextBox(host, options);
function FormulaTextBox;
Example
window.onload = function(){
     var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"), { sheetCount: 1 });
     rangeSelector = new GC.Spread.Sheets.FormulaTextBox.FormulaTextBox(document.getElementById("ftb"), {rangeSelectMode: true});
     rangeSelector.workbook(spread);
}
function buttonClick(){
     alert(rangeSelector.text());
}
Inheritance Hierarchy

Object
   GC.Spread.Sheets.FormulaTextBox.FormulaTextBox

Constructors
 NameDescription
public ConstructorRepresents a formula text box.  
Top
Methods
 NameDescription
public MethodAdds a custom function description.  
public MethodGets or sets whether the text box uses automatic complete.  
public MethodBinds an event.  
public MethodGets or sets the cursor position.  
public MethodRemoves host from formula text box and removes all binding events.  
public Methodrefresh the formula text box with the active cell.  
public MethodRemoves a custom function description.  
public MethodGets or sets whether to display the function's help tip.  
public MethodGets or sets the text.  
public MethodRemoves the binding of an event.  
public MethodRemoves the binding of all events.  
public MethodGets or sets the Workbook component to work with the formula text box.  
Top
See Also

Reference

GC.Spread.Sheets.FormulaTextBox Namespace