{"id":1454,"date":"2019-11-13T16:06:58","date_gmt":"2019-11-13T16:06:58","guid":{"rendered":"https:\/\/docs.sisus.co\/power-inspector\/?p=1454"},"modified":"2021-03-24T17:43:45","modified_gmt":"2021-03-24T17:43:45","slug":"collection-drawer","status":"publish","type":"post","link":"https:\/\/docs.sisus.co\/power-inspector\/enhanced-drawers\/collection-drawer\/","title":{"rendered":"Collection Drawer"},"content":{"rendered":"<p>Power Inspector contains a custom-built drawer for collections that introduces multiple enhancements over the way they used to work in the default inspector.<\/p>\n<h1>Drag &amp; Drop Member Reordering<\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1455\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/11\/reorderable-array-1.png\" alt=\"\" width=\"319\" height=\"116\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/11\/reorderable-array-1.png 319w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/11\/reorderable-array-1-300x109.png 300w\" sizes=\"(max-width: 319px) 100vw, 319px\" \/> \u00a0<img loading=\"lazy\" class=\"alignnone size-full wp-image-1456\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/11\/reorderable-array-2.png\" alt=\"\" width=\"319\" height=\"116\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/11\/reorderable-array-2.png 319w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/11\/reorderable-array-2-300x109.png 300w\" sizes=\"(max-width: 319px) 100vw, 319px\" \/><\/p>\n<p>You can reorder members inside a collection by simply dragging them around.<\/p>\n<p>Dragging can be initiated by pressing the left mouse button down over the prefix label of a member, or the drag bar control found next to the prefix label.<\/p>\n<h1>Cross-Collection Drag &amp; Drop<\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1458\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/11\/cross-collection-drag-n-drop.png\" alt=\"\" width=\"322\" height=\"234\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/11\/cross-collection-drag-n-drop.png 322w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/11\/cross-collection-drag-n-drop-300x218.png 300w\" sizes=\"(max-width: 322px) 100vw, 322px\" \/><\/p>\n<p>It is also possible to drag members from one collection to another.<\/p>\n<p>This even works between many collections of different types, as long as the member type is the same. So you could for example drag a value from an array to a list, and then to a HashSet.<\/p>\n<h1>Member Count Display<\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1457\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/11\/jagged-array.png\" alt=\"\" width=\"322\" height=\"242\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/11\/jagged-array.png 322w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/11\/jagged-array-300x225.png 300w\" sizes=\"(max-width: 322px) 100vw, 322px\" \/><\/p>\n<p>The number of elements contained inside a collection is displayed on the header of the collection. This can be seen even when the collection is folded.<\/p>\n<h1>Multi-Selection Support<\/h1>\n<p>Selecting multiple elements of a collection at the same time is supported.<br \/>\nTo select more than one element of a collection hold down the <strong>control key<\/strong> and click the elements you want selected.<br \/>\nWhen you have more than one element of a collection selected you can target all of them simultaneously with various commands such as <strong>delete<\/strong> and <a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/reset\/\"><strong>reset<\/strong><\/a>.<\/p>\n<h1>Supported Collection Types<\/h1>\n<p>The following collection types are handled by the CollectionDrawer and can be displayed in Power Inspector with all the enhancements listed above:<\/p>\n<ul>\n<li>Array ( T[] )<\/li>\n<li>2D Array ( T[,] )<\/li>\n<li>3D Array ( T[,,] )<\/li>\n<li>Jagged Array ( T[][], T[][][] etc&#8230; )<\/li>\n<li>List&lt;T&gt;<\/li>\n<li>IList&lt;T&gt;<\/li>\n<li>IList<\/li>\n<li>Dictionary&lt;T,K&gt;<\/li>\n<li>IDictionary<\/li>\n<li>HashSet&lt;T&gt;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Power Inspector contains a custom-built drawer for collections that introduces multiple enhancements over the way they used to work in the default inspector. Drag &amp; Drop Member Reordering \u00a0 You can reorder members inside a collection by simply dragging them around. Dragging can be initiated by pressing the left mouse button down over the prefix ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/docs.sisus.co\/power-inspector\/enhanced-drawers\/collection-drawer\/\" title=\"read more\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[],"_links":{"self":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/1454"}],"collection":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/comments?post=1454"}],"version-history":[{"count":4,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/1454\/revisions"}],"predecessor-version":[{"id":1818,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/1454\/revisions\/1818"}],"wp:attachment":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/media?parent=1454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/categories?post=1454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/tags?post=1454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}