You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/javascript/inputs.md
-220Lines changed: 0 additions & 220 deletions
Original file line number
Diff line number
Diff line change
@@ -17,223 +17,3 @@ The current gain is ${gain.toFixed(1)}!
17
17
## view(*input*)
18
18
19
19
As described above, this function [displays](./display) the given input element and then returns its corresponding [generator](./generators) via `Generators.input`. Use this to display an input element while also exposing the input’s value as a [reactive top-level variable](./reactivity).
20
-
21
-
## Built-in inputs
22
-
23
-
These basic inputs will get you started.
24
-
25
-
*[Button](#button) - do something when a button is clicked
26
-
*[Toggle](#toggle) - toggle between two values (on or off)
27
-
*[Checkbox](#checkbox) - choose any from a set
28
-
*[Radio](#radio) - choose one from a set
29
-
*[Range](#range) or [Number](https://observablehq.com/@observablehq/input-range) - choose a number in a range (slider)
30
-
*[Select](#select) - choose one or any from a set (drop-down menu)
31
-
*[Text](#text) - enter freeform single-line text
32
-
*[Textarea](#textarea) - enter freeform multi-line text
33
-
*[Date](#date) or [Datetime](https://observablehq.com/@observablehq/input-date) - choose a date
34
-
*[Color](#color) - choose a color
35
-
*[File](#file) - choose a local file
36
-
37
-
These fancy inputs are designed to work with tabular data such as CSV or TSV [file attachments](./files).
38
-
39
-
*[Search](#search) - query a tabular dataset
40
-
*[Table](#table) - browse a tabular dataset
41
-
42
-
---
43
-
44
-
### Button
45
-
46
-
Do something when a button is clicked. [Examples ›](https://observablehq.com/@observablehq/input-button)[API Reference ›](https://github.com/observablehq/inputs/blob/main/README.md#button)
47
-
48
-
```js echo
49
-
constclicks=view(Inputs.button("Click me"));
50
-
```
51
-
52
-
```js
53
-
clicks
54
-
```
55
-
56
-
---
57
-
58
-
### Toggle
59
-
60
-
Toggle between two values (on or off). [Examples ›](https://observablehq.com/@observablehq/input-toggle)[API Reference ›](https://github.com/observablehq/inputs/blob/main/README.md#toggle)
61
-
62
-
```js echo
63
-
constmute=view(Inputs.toggle({label:"Mute"}));
64
-
```
65
-
66
-
```js
67
-
mute
68
-
```
69
-
70
-
---
71
-
72
-
### Checkbox
73
-
74
-
Choose any from a set. [Examples ›](https://observablehq.com/@observablehq/input-checkbox)[API Reference ›](https://github.com/observablehq/inputs/blob/main/README.md#checkbox)
Choose one from a set. [Examples ›](https://observablehq.com/@observablehq/input-radio)[API Reference ›](https://github.com/observablehq/inputs/blob/main/README.md#radio)
Choose one, or any, from a menu. [Examples ›](https://observablehq.com/@observablehq/input-select)[API Reference ›](https://github.com/observablehq/inputs/blob/main/README.md#select)
Enter freeform single-line text. [Examples ›](https://observablehq.com/@observablehq/input-text)[API Reference ›](https://github.com/observablehq/inputs/blob/main/README.md#text)
144
-
145
-
```js echo
146
-
constname=view(Inputs.text({label:"Name", placeholder:"What’s your name?"}));
147
-
```
148
-
149
-
```js
150
-
name
151
-
```
152
-
153
-
---
154
-
155
-
### Textarea
156
-
157
-
Enter freeform multi-line text. [Examples ›](https://observablehq.com/@observablehq/input-textarea)[API Reference ›](https://github.com/observablehq/inputs/blob/main/README.md#textarea)
158
-
159
-
```js echo
160
-
constbio=view(Inputs.textarea({label:"Biography", placeholder:"What’s your story?"}));
161
-
```
162
-
163
-
```js
164
-
bio
165
-
```
166
-
167
-
---
168
-
169
-
### Date
170
-
171
-
Choose a date, or a date and time. [Examples ›](https://observablehq.com/@observablehq/input-date)[API Reference ›](https://github.com/observablehq/inputs/blob/main/README.md#date)
Choose a local file. [Examples ›](https://observablehq.com/@observablehq/input-file)[API Reference ›](https://github.com/observablehq/inputs/blob/main/README.md#file)
Copy file name to clipboardExpand all lines: docs/lib/duckdb.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
# DuckDB
2
2
3
-
Observable Markdown has built-in support for DuckDB via [duckdb-wasm](https://github.com/duckdb/duckdb-wasm). It’s easiest to use in conjunction with [`FileAttachment`](./files). Declare a database with `DuckDBClient`, passing in a set of named tables:
3
+
Observable Markdown has built-in support for DuckDB via [duckdb-wasm](https://github.com/duckdb/duckdb-wasm). It’s easiest to use in conjunction with [`FileAttachment`](../javascript/files). Declare a database with `DuckDBClient`, passing in a set of named tables:
0 commit comments