Page tree

When translate5 segment is opened for editing, below the currently edited text(source/target), a status strip is placed, which can contain multiple elements in it.
If no status strip element/item exist or is visible, the component is not displayed.
There are multiple functions which all status strip items need to implement, so the component is visible and functional.

 

handleElementVisible:function(record){
	//code 
	return true;
}

This function is called in the all status strip child elements, each time when the segment is opened for editing. The function must return true or false, deppending on if the component needs to be visible or not.

The argument which is provided is of type 'Editor.model.Segment' and contains all the data of the currently edited segment.

 

handleElementVisible:function(record){
	//code
}

The second function provide us a object of type 'Editor.model.Segment' for internal usage in the component.

  • No labels