Skip to content

Commit 43a1faa

Browse files
authored
Add in-package to dashboard fact example
1 parent ae02f08 commit 43a1faa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/en/modes/dashboard.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ You are responsible for the actual insertion of text inside of `draw-dashboard-i
9494
As an example, let's make a `dashboard-item` that fetches a random fact from an HTTP API and prints it:
9595

9696
```lisp
97+
(in-package :lem-dashboard)
98+
9799
(defclass dashboard-random-fact (dashboard-item)
98100
((fact :initform nil :accessor fact)
99101
(fetching :initform nil :accessor fetching))
@@ -131,4 +133,4 @@ Multithreading is overkill here, but it lets us fetch the fact without delaying
131133
### Current limitations
132134

133135
- Only vertical stacking is currently supported. If you want to stack multiple elements horizontally, you'll have to make a dashboard item that does so.
134-
- No image support.
136+
- No image support.

0 commit comments

Comments
 (0)