|
FolderDocument.View object
Prototype for FolderDocument.View objects. Is a kind of View object. SyntaxYou cannot create View object directly. Views are created as necessary when DocumentFrame objects are created for a document.
var my_doc;
Parametersnone. Property Ofnone. Implemented InECMerge 2.1 DescriptionFolderDocument.View objects let you navigate to a given item, obtain the selection or set it. Propertiesnone specific. Methods
clone_selection
ExamplesExample 1.Sets the selection to the current one with an additional item called "/path/file.txt":
var sel =
current_frame.coordinator.current_view.clone_selection();
See Also
Method clone_selectionSyntaxfunction clone_selection ( )
Parametersnone. Method OfFolderDocument.View object Implemented InECMerge 2.1 DescriptionReturns a new selection object which contains the same elements as those selected in the view. ExamplesExample 1.Retrieves the selection of the current view: current_frame.coordinator.current_view.clone_selection(); See Also
Method navigateSyntaxfunction navigate (item) Parametersitem. FolderDocument.Item object. item to which the view should navigate. Method OfFolderDocument.View object Implemented InECMerge 2.1 DescriptionOpens folders as necessary then set the current position and selection of the view to the given item. ExamplesExample 1.Navigate to the first item inside the root:
var current_doc = current_frame.coordinator.document;
See Also
Method set_selectionSyntaxfunction set_selection (selection) Parametersselection. FolderDocument.Selection object. Selection to set on the view Method OfFolderDocument.View object Implemented InECMerge 2.1 DescriptionSelects in the view exactly the same items as those included in selection. ExamplesExample 1.Builds a selection containing all the items, then set it on the view (actually selecting all items):
var current_doc = current_frame.coordinator.document;
See Also
|
|