js-fileexplorer icon indicating copy to clipboard operation
js-fileexplorer copied to clipboard

Allow for list view

Open georgie91 opened this issue 1 year ago • 1 comments

Hello, awesome project. Could you point me in the direction within the 1000s of beautiful lines of code where you set up the view for the files/folder grid? I'd like to take a crack at adding a list/detail styled view. Thanks!

georgie91 avatar Apr 03 '24 12:04 georgie91

The styles/layout are all managed in CSS. Medium icon view, which is what this widget uses, displays slightly more items on a single screen than a detail/list view can. Detail/list view also won't work on mobile devices - at least not the way Windows itself lays out information.

As to the code itself, you're looking for SyncCurrFolderToDOM() where items get created and attached to the DOM using CreateNode() and appendChild().

I'm not all that open to major/dramatic changes to the widget. See: https://github.com/cubiclesoft/js-fileexplorer/issues/9

There are a ton of nuances beyond adding a new view and there's a high probability the existing code will break.

cubiclesoft avatar May 04 '24 16:05 cubiclesoft