⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 treegrid.js

📁 javascript 很酷的类库
💻 JS
📖 第 1 页 / 共 5 页
字号:
    //>	@attr	treeGrid.separateFolders		(boolean : false : IR)    //          Specifies whether folders and leaves should be segregated in the treeGrid display.    //          With separateFolders:true and sortDirection:"descending", folders are displayed    //          before their sibling leaves; with sortDirection:"ascending", leaves are displayed    //          before their sibling folders.    // @group treeField    //      @visibility external	//<	separateFolders:false,	//>	@attr	treeGrid.displayNodeType (DisplayNodeType : isc.Tree.FOLDERS_AND_LEAVES : [IRW])    //          Specifies the type of nodes displayed in the treeGrid.     // @see type:DisplayNodeType for options    // @group treeField    // @visibility external	//<	displayNodeType:isc.Tree.FOLDERS_AND_LEAVES,		// Drag and Drop	// --------------------------------------------------------------------------------------------    //>	@attr	treeGrid.canDragRecordsOut		(boolean : false : IRW)	//	@include ListGrid.canDragRecordsOut    //  @group	dragdrop    // @see TreeNode.canDrag    // @see TreeNode.canAcceptDrop    // @visibility external    // @example treeDropEvents    //<	canDragRecordsOut:false,			    //>	@attr	treeGrid.canAcceptDroppedRecords		(boolean : false : IRW)	//	@include ListGrid.canAcceptDroppedRecords    // @see TreeNode.canDrag    // @see TreeNode.canAcceptDrop    //  @group	dragdrop    // @visibility external    // @example dragReparent    //<	//canAcceptDroppedRecords:false,			    //>	@attr	treeGrid.canReorderRecords		(boolean : false : IRWA)    // @include ListGrid.canReorderRecords    // @see TreeNode.canDrag    // @see TreeNode.canAcceptDrop    // @group dragdrop    // @visibility external    // @example dragReparent	//<	//canReorderRecords:false,     //> @attr treeGrid.canDropOnLeaves          (boolean : false : IRWA)       // Whether drops are allowed on leaf nodes.    // <P>    // Dropping is ordinarily not allowed on leaf nodes unless +link{canReorderRecords} is    // set.      // <P>    // The default action for a drop on a leaf node is to place the node in that leaf's parent    // folder.  This can be customized by overriding +link{folderDrop()}.    //    // @visibility external    //<        //> @attr treeGrid.canReparentNodes     (boolean : null : IRW)    // If set this property allows the user to reparent nodes by dragging them from their    // current folder to a new folder.<br>    // <b>Backcompat:</b> For backwards compatibility with versions prior to SmartClient 1.5,    // if this property is unset, but <code>this.canAcceptDroppedRecords</code> is true, we    // allow nodes to be dragged to different folders.    // @see TreeNode.canDrag    // @see TreeNode.canAcceptDrop    // @group dragdrop    // @visibility external    //<    //canReparentNodes:null,		//>	@attr	treeGrid.dragDataAction		(DragDataAction : isc.ListGrid.MOVE : IRWA)    //    // Specifies what to do with data dragged from this TreeGrid (into another component, or    // another node in this TreeGrid.  The default action is to move the data.  A setting of    // "none" is not recommended for trees because Trees maintain the node open state on the nodes    // themselves, and hence having multiple Tree objects share a reference to a node can have    // unintended consequences (such as opening a folder in one tree also triggering an open in    // another tree that shares the same node).    // <br><br>    // For DataBound trees (+link{class:ResultTree}), the expectation is that    // +link{method:TreeGrid.folderDrop} will be overridden to perform whatever action took    // place as the result of the drag and drop interaction.	//    // @see group:sharingNodes    // @visibility external	//<	dragDataAction:isc.ListGrid.MOVE,    dragRecategorize:true,        //> @attr treeGrid.openDropFolderDelay (integer : 600 : IRWA)    // When dragging something over a closed folder, delay in milliseconds before the folder    // automatically opens.    //<    openDropFolderDelay:600,    // D&D Error Messages    // error messages for invalid drag and drop situations.  Can be customized on a per    // instance basis so something more application-specific can be said, eg "a manager cannot    // become his own employee"    //> @attr treeGrid.parentAlreadyContainsChildMessage (String : "This item already contains a child item with that name." : IR)    // Message displayed when user attempts to drag a node into a parent that already contains    // a child of the same name.    // @see attr:treeGrid.canDragRecordsOut    // @see attr:treeGrid.canAcceptDroppedRecords    // @see attr:treeGrid.canReorderRecords    // @group i18nMessages    // @visibility external    //<    parentAlreadyContainsChildMessage:"This item already contains a child item with that name.",    	//>	@attr treeGrid.cantDragIntoSelfMessage (String : "You can't drag an item into itself." : IR)    // Message displayed when user attempts to drop a dragged node onto itself.    // @see attr:treeGrid.canDragRecordsOut    // @see attr:treeGrid.canAcceptDroppedRecords    // @see attr:treeGrid.canReorderRecords    // @group i18nMessages    // @visibility external        //<	cantDragIntoSelfMessage:"You can't drag an item into itself.",	//>	@attr treeGrid.cantDragIntoChildMessage (String : "You can't drag an item into one of it's children." : IR)    // Message displayed when user attempts to drop a node into a child of itself.    // @see attr:treeGrid.canDragRecordsOut    // @see attr:treeGrid.canAcceptDroppedRecords    // @see attr:treeGrid.canReorderRecords    // @group i18nMessages    // @visibility external    //<	cantDragIntoChildMessage:"You can't drag an item into one of it's children.",    // Body Rendering	// --------------------------------------------------------------------------------------------    //>	@attr	treeGrid.fixedFieldWidths		(boolean : true : IRWA)	//			make trees fixedFieldWidths by default	//		@group	appearance	//<	fixedFieldWidths:true,    //>	@attr	treeGrid.wrapCells		(boolean : false : IRWA)	//			don't wrap, as that will mess up the look of the trees	//		@group	appearance	//<	wrapCells:false,	//>	@attr	treeGrid.showHiliteInCells		(boolean : false : IRWA)	// Should the hilite show across the entire record or just in the text of the item itself		//<	showHiliteInCells:false,		// Images: locations, sizes, and names	// --------------------------------------------------------------------------------------------    //>	@attr	treeGrid.indentSize		(number : 20 : [IRW])    //          The amount of indentation (in pixels) to add to a node's icon/title for each level    //          down in this tree's hierarchy.    //      @visibility external    //      @group  appearance    //<	indentSize:20,        //>	@attr	treeGrid.iconSize		(number : 16 : [IRW])    //          The standard size (same height and width, in pixels) of node icons in this    //          treeGrid.    // @group treeIcons    // @visibility external    //<	iconSize:16,    //>	@attr	treeGrid.openerIconSize		(number : null : [IRW])    // Width and height in pixels of the opener icons.  If unset and showConnectors is true,	// defaults to treeGrid.cellHeight. If unset and showConnectors is false, defaults to	// treeGrid.iconSize.    // @group treeIcons    //      @group  appearance    //<	//openerIconSize:null,            //>	@attr	treeGrid.skinImgDir		(URL : "images/TreeGrid/" : IRWA)	//		Where do 'skin' images (those provided with the class) live?	//		This is local to the Page.skinDir	//		@group	appearance, images	//<	skinImgDir:"images/TreeGrid/",	    //>	@attr	treeGrid.folderIcon        (SCImgURL : "[SKIN]folder.gif" : [IRW])    // The URL of the base icon for all folder nodes in this treeGrid. Note that this URL will    // have +link{treeGrid.openIconSuffix}, +link{treeGrid.closedIconSuffix} or     // +link{treeGrid.dropIconSuffix} appended to indicate state changes if appropriate -     // see documentation on  +link{treeGrid.showOpenIcons} and +link{treeGrid.showDropIcons}.    // @group treeIcons    //      @visibility external    // @example nodeTitles    //<    folderIcon:"[SKIN]/folder.gif",    //> @attr   treeGrid.dropIconSuffix   (String : "drop" : [IRW])    // If +link{treeGrid.showDropIcons} is true, this suffix will be appended to the    // +link{treeGrid.folderIcon} when the user drop-hovers over some folder.    // @group treeIcons    // @visibility external    //<    dropIconSuffix:"drop",        //> @attr   treeGrid.openIconSuffix   (String : "open" : [IRW])    // If +link{treeGrid.showOpenIcons} is true, this suffix will be appended to the    // +link{treeGrid.folderIcon} for open folders in this treeGrid.    // @group treeIcons    // @visibility external    //<    openIconSuffix:"open",    //> @attr   treeGrid.closedIconSuffix   (String : "closed : [IRW])    // This suffix will be appended to the +link{treeGrid.folderIcon} for closed folders.    // If +link{treeGrid.showOpenIcons} is set to <code>false</code> this suffix will also be    // appended to open folders' icons.    // @group treeIcons    // @visibility external    //<    closedIconSuffix:"closed",        //> @attr   treeGrid.nodeIcon  (SCImgURL : "[SKIN]file.gif" : [IRW])    // The filename of the default icon for all leaf nodes in this treeGrid. To specify a     // custom image for an individual node, set the +link{TreeGrid.customIconProperty} directly on    // the node.    // @group treeIcons    //      @visibility external    // @example nodeTitles    //<    nodeIcon:"[SKIN]/file.gif",            //>@attr treeGrid.showOpenIcons (boolean : true : IRW)    // If true, show a different icon for <code>open</code> folders than closed folders.    // This is achieved by appending the +link{treeGrid.openIconSuffix} onto the     // +link{TreeGrid.folderIcon} URL [for example <code>"[SKIN]/folder.gif"</code> might be     // replaced by <code>"[SKIN]/folder_open.gif"</code>.<br>    // <b>Note</b> If this property is set to <code>false</code> we will show the same icon for    // open icons as for closed icons - unless a custom folder icon was specified, this will be    // determined by +link{treeGrid.folderIcon} plus the +link{treeGrid.closedIconSuffix}.    // @group treeIcons    // @visibility external    // @example nodeTitles    //<    showOpenIcons:true,        //>@attr treeGrid.showDropIcons (boolean : true : IRW)    // If true, when the user drags a droppable target over a folder in this TreeGrid, show     // a different icon folder icon.    // This is achieved by appending the +link{treeGrid.dropIconSuffix} onto the    // +link{TreeGrid.folderIcon} URL (for example <code>"[SKIN]/folder.gif"</code> may be    // replaced by <code>"[SKIN]/folder_drop.gif"</code>).    // @group treeIcons    // @visibility external    // @example nodeTitles    //<    showDropIcons:true,        //> @attr   treeGrid.customIconProperty   (String : "icon" : [IRW])    // This property allows the developer to customize the icon displayed next to a node.    // Set <code>node[grid.customIconProperty]</code> to the URL of the desired icon to display and    // it will be shown instead of the standard +link{treeGrid.nodeIcon} for this row.<br>    // Note that if +link{TreeGrid.showCustomIconOpen} and/or +link{TreeGrid.showCustomIconDrop}     // is true for this grid, customized icons for folder nodes will be appended with the     // +link{treeGrid.dropIconSuffix} or +link{treeGrid.openIconSuffix} suffixes on state change     // as with the standard +link{TreeGrid.folderIcon} for this treeGrid.  Also note that for    // custom folder icons, the +link{treeGrid.closedIconSuffix} will never be appened.    // @group treeIcons    // @visibility external    //<    customIconProperty:"icon",        //> @attr   treeGrid.showCustomIconOpen   (boolean : false : [IRWA])    // Should folder nodes showing custom icons (set via the +link{treeGrid.customIconProperty}),    // show open state images when the folder is opened.    // If true, the +link{treeGrid.openIconSuffix} will be appended to the image URL    // (so <code>"customFolder.gif"</code> might be replaced with     // <code>"customFolder_open.gif"</code>).<br>    // <b>Note</b> that we never append the +link{treeGrid.closedIconSuffix} to custom folder icons.<br>    // Can be overridden at the node level via the +link{treeGrid.customIconOpenProperty} property.    // @group treeIcons    // @visibility external    //<    showCustomIconOpen:false,        //> @attr   treeGrid.showCustomIconDrop   (boolean : false : [IRWA])    // Should folder nodes showing custom icons (set via the +link{treeGrid.customIconProperty}),    // show drop state images when the user is drop-hovering over the folder.    // If true, the +link{treeGrid.dropIconSuffix} will be appended to the image URL    // (so <code>"customFolder.gif"</code> might be replaced with     // <code>"customFolder_drop.gif"</code>).<br>    // Can be overridden at the node level via the +link{treeGrid.customIconDropProperty} property.    // @group treeIcons    // @visibility external    //<    showCustomIconDrop:false,    //> @attr   treeGrid.customIconOpenProperty (string : "showOpenIcon" : [IRWA])    // For folder nodes showing custom icons (set via the +link{treeGrid.customIconProperty}),    // this property allows the developer to specify on a per-node basis whether a    // open state icon should be displayed when the folder is open.    // Set <code>node[treeGrid.customIconOpenProperty]</code> to true to show the open state    // icons, or false to suppress this.<br>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -