IntRoutingBuilderImpl

An implementation of the IntRoutingBuilder interface for numeric routes. Provides methods to define views and actions for routes with numeric parameters.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var action: suspend (Int) -> Unit?
Link copied to clipboard
var meta: Meta?
Link copied to clipboard
var view: @Composable IComponent.(Int) -> Unit?

Functions

Link copied to clipboard
open override fun action(action: suspend (Int) -> Unit)

Adds an action for the route with a numeric parameter.

Link copied to clipboard
fun add(route: Route)
Link copied to clipboard
open fun int(routingBuilder: IntRoutingBuilder.(IntRoutingContext) -> Unit)

Adds a route for a numeric path segment.

Link copied to clipboard
open fun meta(meta: Meta.() -> Unit)

Adds metadata for the given route.

Link copied to clipboard
open fun route(vararg path: String, routingBuilder: PlainRoutingBuilder.(RoutingContext) -> Unit)

Adds a route for the specified path.

Link copied to clipboard
open fun routes(): List<Route>?
Link copied to clipboard
open fun string(routingBuilder: StringRoutingBuilder.(StringRoutingContext) -> Unit)

Adds a route for a string path segment.

Link copied to clipboard
open override fun view(view: @Composable IComponent.(Int) -> Unit)

Adds a view for the route with a numeric parameter.