Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Config example in module info

#6

Idea

Display one or more generated or hard-coded configuration examples or scaffolds for modules with --list-widgets similar to --scaffold.

Example

% amazing -w clock
Clock - Displays date and time

 OPTION | DESCRIPTION                         | DEFAULT
--------------------------------------------------------
 format | Time format as described in DATE(1) | "%R"
 offset | UTC offset in hours                 | 2

 FIELD  | DESCRIPTION    | DEFAULT
-----------------------------------
 @time  | Formatted time | nil

 CONFIGURATION EXAMPLES
------------------------

widget("my_widget") {
  set :module => :clock
  set :property => "text"
  set :interval => 1
  set :format => "%R"
  set :offset => 2

  property("text") {
    @time
  }
}

Reported by Dag Odenhall · May 16th, 2008 @ 03:41 PM

State: open
Milestone: First Release
Assigned to: Dag Odenhall Dag Odenhall

Activity

  1. Dag Odenhall
    Dag Odenhall
    • Milestone set to First Release
    • State changed from new to open

    May 16th, 2008 @ 03:47 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.