list-card icon indicating copy to clipboard operation
list-card copied to clipboard

Added Folder Integration Support and hass action support

Open versile2 opened this issue 1 year ago • 1 comments

Switched from a table to grid view for better styling within the boundaries of the card (often as a table it was extending beyond the card).

Added specific details for the folder integration usage, specifically when the feed_attribute is file_list it automatically creates the following columns: path, name, filename, fullpath, and ext. Path is just the path to the file not including the filename (e.g. '/config/www/media/files/') Name is the filename including extension or if the name matches the format YYYYMMDDHHmmSS.* it will translate it to human readable date/time in English. (e.g. 'snapshot.jpg or 'Mar 14, 2024, 3:12PM') filename is the filename including extension (e.g. 'snapshot.jpg') ext is just the extension (e.g. 'jpg')

the add_link will work for any file in your folder integration that is in the www directory. simply add it to your column and it will work. By default add_link is included if no columns are specified.

Actions added for specifically call-service, navigate, and fire-dom-event (part of call service). Any other action would be refused. It would be trivial to add such action if a use case could be made. Regular rules apply for each of these. Anything you include after action is sent to the action and is not part of this card's code but part of the HA built in hass-action code.

Added ability to copy/paste data.

Added ability to sort the feed. Use the following in the config at the base. sort: value: fieldname reverse: true (Defaults to false)

versile2 avatar Mar 18 '24 20:03 versile2

Hello, this merge request is adding scrollbars for large amount of data and keeps card height on default value. Is it possible to add configuration option to be able to extend card height if needed and display all data with no scrolls?

PavelD avatar Oct 10 '24 07:10 PavelD