Closed dpsutton closed 6 years ago
This looks great, could you add to the docs as well?
@bhauman pushed. I'm assuming you don't want committed changes to the out.js. Let me know if that's not correct
I don't see the changes
ah sorry. renamed remotes and it didn't push. it should be there now @bhauman
good stuff! Thanks!
Somtimes card state is a bit more verbose than what is actually interesting. This allows for a
:projection
option to manipulate the data for the edn printout. Function of a single arity should be passed the state atom.This makes my life a bit nicer at the moment. I would like to add the ability to toggle the projection on and off so that one could see the entire data structure if so desired. At the moment you have to just comment out the
:projection
argument. I'll need to learn a bit more about the internals and the ui before I can do that though.Let me know if you prefer a different option name. Also, I'm not sure how to extend validate-card-options to verify this, nor if there should be a bit more error handling in case the function does something wonky. You are very conscious of user experience and I don't want to negatively impact this.
Satisfies issue https://github.com/bhauman/devcards/issues/137
Example:
Before![verbose](https://user-images.githubusercontent.com/6377293/40183277-0cf5f962-59b3-11e8-9682-70d2cf7246d6.png)
And After![filtered](https://user-images.githubusercontent.com/6377293/40183300-19f190e0-59b3-11e8-8207-d2fc0d9d136d.png)