BB.Kino.Command (bb_kino v0.3.3)

View Source

A Kino widget for executing robot commands.

Displays available commands in a tab view with:

  • Dynamic form for each command's arguments
  • Execute button with loading state
  • Result/error display

Usage

BB.Kino.Command.new(MyRobot)

The widget automatically:

  • Discovers commands from the robot's DSL definition
  • Generates form inputs based on argument types
  • Executes commands via BB.Robot.Runtime.execute/3
  • Displays results or errors

Summary

Functions

Creates a new command widget for the given robot.

Functions

new(robot_module)

@spec new(module()) :: Kino.JS.Live.t()

Creates a new command widget for the given robot.