Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Folder Integration Support and hass action support #56

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

versile2
Copy link

@versile2 versile2 commented Mar 18, 2024

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)

removred table, added grid, added folder integration to file_list, added tap_actions
Minor comment change to better explain what is happening
added copy/paste functionality
added ability to sort using config
sort:
  value: fieldname
  reverse: true (Defaults to false)
fixed error in json lists
added ability to show_header: false as well as additional changes to make it work for standard json with feed_attribute:
Some containers load the card weird, minor correction for that.
@PavelD
Copy link
Contributor

PavelD commented Oct 10, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants