Thanks to visit codestin.com
Credit goes to docs.jaspr.site

Jaspr API Reference

API Reference for the Jaspr Web Framework.

This is the API reference documentation for the Jaspr Web Framework. It provides a comprehensive overview of the most important components and utilities available in the framework.

This is not the complete API reference. For a complete reference, please refer to the generated API Reference on pub.dev.

This documentation is split into the sections:

Components

DocumentComponent

The Document component sets up and controls the basic document structure.

Read Docs

RawTextComponent

Renders raw HTML from a String.

Read Docs

AsyncBuilderComponent

Server-side components with an async build method.

Read Docs

AsyncStatelessComponentComponent

Server-side components with an async build method.

Read Docs

RouterComponent

Handles routing between different pages both server- and client-side.

Read Docs

LinkComponent

Handles any kind of link.

Read Docs

StyleComponent

Renders the provided StyleRules into css and wraps them with a <style> element.

Read Docs

FlutterEmbedViewComponent

Embed a flutter app in your Jaspr side.

Read Docs

JasprBadgeComponent

Displays a "Built with Jaspr" badge.

Read Docs

General

runAppFunction

Runs your Jaspr site on either the server or the client.

Read Docs

StylesClass

Type-safe Dart bindings of CSS properties.

Read Docs

@css / css()Annotation / Function

Styling utility to write nested style rules.

Read Docs

events()Function

Type-safe event bindings for HTML components.

Read Docs

GlobalNodeKeyClass

Get access to the unterlying dom node of a component.

Read Docs

ViewTransitionMixinMixin

Easily transition between ui states with View Transitions.

Read Docs

Server / Client

@clientAnnotation

With the @client annotation you can automatically hydrate selected components on the client.

Read Docs

@encoder / @decoderAnnotation

Setup encoding and decoding for custom data types.

Read Docs

@ImportAnnotation

How to import platform-specific libraries in shared components.

Read Docs

@syncAnnotation

Easy data synchronization with support for custom data types.

Read Docs

SyncStateMixinMixin

Syncing the state of a StatefulComponent from server to client.

Read Docs

PreloadStateMixinMixin

Asynchronously preloading the state of a StatefulComponent on the server.

Read Docs

headers / setHeader()Accessor / Function

Access request headers and set response headers.

Read Docs

cookies / setCookie()Accessor / Function

Access request cookies and set response cookies.

Read Docs

setStatusCode()Function

Set the response status code and body.

Read Docs