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

✨ Request transforms #147

Open
T4rk1n opened this issue Jul 31, 2021 · 0 comments
Open

✨ Request transforms #147

T4rk1n opened this issue Jul 31, 2021 · 0 comments
Labels
enhancement New feature or request transforms

Comments

@T4rk1n
Copy link
Owner

T4rk1n commented Jul 31, 2021

Allow to performs requests on the client-side via transforms for fetching data.

Example

page = Page(
    __name__,
    core.Container([
        core.Button('fetch data', identity='fetch-btn'),
        core.Container(identity='request-output')
    ]),
)

page.tie('clicks@fetch-btn', 'children@request-output').transform(
    t.Request('http://some.api/', method='post').t(t.ToJson())
)
@T4rk1n T4rk1n added enhancement New feature or request transforms labels Jul 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request transforms
Projects
None yet
Development

No branches or pull requests

1 participant