getCellHeaderText ();
The getCellHeaderText method returns text container in the table column header for a selected cell.
If multiple cells are selected, this method returns undefined value.
To execute the example, the page must contain the LanerBox component named lanerbox (see LanerBox Constructor), and the following code must be added in the handler that processes document opening event:
// Create a button var btnGetCellHeaderText = new PP.Ui.Button({ ParentNode: "params", //DOM parent node Content: "GetCellHeaderText", //text Click: PP.Delegate(function(sender, args){ //click handler //one cell must be selected console.log("Get text from table column header for the selected cell"); var cellHeaderText = lanerbox.getCellHeaderText(); console.log(cellHeaderText); }, this) });
After executing the example the GetCellHeaderText button is added in the HTML page, clicking this button shows to the browser console the text stored in table column header for the selected cell's column:
W2/10/2000
See also: