Skip to content

Instantly share code, notes, and snippets.

@GitMurf
Last active June 13, 2023 03:16
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save GitMurf/aece9f105628640cb79925d1310449ec to your computer and use it in GitHub Desktop.
Save GitMurf/aece9f105628640cb79925d1310449ec to your computer and use it in GitHub Desktop.
Filtering attribute tables
/*
****************************************************************************************
****************************************************************************************
****************************************************************************************
NOW HOSTING CODE VIA MY MAIN GITHUB REPOSITORY FOR ROAM SO THAT USERS CAN LINK DIRECTLY TO THE CODE AND AUTO UPDATE
GO HERE FOR INSTALLATION INSTRUCTIONS: https://github.com/GitMurf/roam-javascript#installation
****************************************************************************************
****************************************************************************************
****************************************************************************************
*/
@GitMurf
Copy link
Author

GitMurf commented Oct 15, 2020

image

image

image

image

@GitMurf
Copy link
Author

GitMurf commented Oct 15, 2020

Attr Table Filter DEMO

@GitMurf
Copy link
Author

GitMurf commented Oct 15, 2020

Couple "rules" when it comes to the saved filters:

  1. Child block with the saved filter must be shown (ie. NOT collapsed)
  2. Child block with filter must NOT be in edit mode (ie. click out of the block before trying to filter)
  3. Current filter for that column must be empty to apply the saved filter.

zVKiOsuUFG

@GitMurf
Copy link
Author

GitMurf commented Oct 15, 2020

Just added ability to filter for TODO and DONE items.

TODO filtering

@GitMurf
Copy link
Author

GitMurf commented Nov 17, 2020

Moving development/updates back to regular GitHub repository so that users can set their roam/js source to the Repo link to keep up-to-date automatically. https://gitmurf.github.io/roam-javascript/#attribute-table-filters

@zzzgithubzzz
Copy link

Wow! Absolutely amazing.. Thank you 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment