Support calling actions and editing #166
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR supports the ability to call any Home Assistant actions by tapping, double-tapping, and tapping and holding configured cells. This feature is configured and behaves in the same way as other Home Assistant cards that support actions.
Also included because it is tightly connected with actions is the ability to edit the text in cells.
Finally, the ability to select and copy text has been added, since it is a simple one-line change.
The documentation has been updated extensively to explain these operations.
These changes, while significant, are not expected to cause any breaking changes. The user must opt-in for any of the new code to be active, with the exception of two small CSS changes. The change to "tr td" is necessary for tap-and-hold feedback and "ripple" feedback. The addition of ".type-custom-flex-table-card" was to fix a long-standing formatting issue with wide cards that was evident in some of the example screenshots I was using for the docs.
A couple of minor cosmetic changes to existing documentation were added due to their small size.
And, this satisfies #58, which you weren't too keen on at the time, but hopefully will see the value. I have been wanting the ability to do this for a long time, and am already happily using the new features in production.
It may also resolve #11. The card, when configured with many columns, already expands past the view's column width...it just didn't expand the background element to match. This is now handled by ".type-custom-flex-table-card", and it should be purely cosmetic.
As always, let me know if you have any questions or concerns.