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

Feat: Make any selected row/object self anchoring itself somehow for easy reopening #100

Open
dd84ai opened this issue Jan 29, 2025 · 0 comments

Comments

@dd84ai
Copy link
Member

dd84ai commented Jan 29, 2025

How the heck to implement it within realm of Htmx usage

Somehow to leave Theme colorings working. (js persistance?)
Converting tabs to boosts? https://htmx.org/docs/#boosting
Any other ideas?

https://htmx.org/api/ Htmx api as a choice
And on first page load https://stackoverflow.com/questions/38820598/running-function-on-first-time-page-load
Read anchor and apply 🤔

https://stackoverflow.com/questions/67717909/how-to-change-color-scheme-using-css-only
Apply theme via jabbascript and persist though it? Via local storage

Make Tabs as boostable anchors.
On row click, change url to real anchor hmm?

const nextURL = 'https://darklab8.github.io/fl-data-discovery/dark.html';
const nextTitle = 'My new page title';
const nextState = { additionalInformation: 'Updated the URL with JS' };
window.history.replaceState(nextState, nextTitle, nextURL);

https://www.30secondsofcode.org/js/s/modify-url-without-reload/

  • So basically..., on Tab click you need to replace URL.
  • on Row click you need to write Query parameters?
  • On first page load finished? You need to click reclick relevant element ID!

Plus preferably solve coloring

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

No branches or pull requests

1 participant