Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

trigger writeback #47

Merged
merged 1 commit into from
Apr 26, 2021
Merged

trigger writeback #47

merged 1 commit into from
Apr 26, 2021

Conversation

s-cork
Copy link
Collaborator

@s-cork s-cork commented Apr 24, 2021

close #46

Implements a trigger('writeback') on all components.

It also removes the init method which was only used to create the trigger method and instead just adds trigger to Component.

It would mean that making a textbox writeback on change would be as simple as

from anvil_extras import augment

def textbox_change(self, sender, **event_args):
    sender.trigger('writeback')

@meatballs meatballs merged commit a727f24 into main Apr 26, 2021
@meatballs meatballs deleted the stu-dev/trigger-writeback branch April 26, 2021 08:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Augment trigger('writeback')
2 participants