Skip to content

Now supports reading and writing data to properties dynamically! #16

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

Merged
merged 1 commit into from
Dec 4, 2020

Conversation

danmurphy1217
Copy link
Owner

You can now read and write data to 'cells' in a Notion Collection View.

When you retrieve a row or collection view, a few important methods are dynamically created behind-the-scenes. Most notably, I create two methods for each property of each row in your Collection View:

.property_name: a readable instance variable that returns the value assigned to that property
.property_name=: a singleton method that updates the value assigned to that property in your Notion Collection View (is also modify's self to track the updates made to those properties, but this is under-the-hood and not exposed to the user.

So, if you have a property called "name," you can access the value assigned to that specific property in a specific row with .name and you can update the value assigned to that specific property in a specific row with .name=.

… reading and updating property data for a Notion Collection View
@danmurphy1217 danmurphy1217 merged commit 89dfc6a into master Dec 4, 2020
@danmurphy1217 danmurphy1217 deleted the add-update-row-functionality branch December 4, 2020 03:01
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.

1 participant