Skip to content

Commit

Permalink
Merge pull request #32 from Seme4eg/main
Browse files Browse the repository at this point in the history
fix outdated information and typos
  • Loading branch information
Aylur authored May 14, 2024
2 parents f91fef0 + 576fe8a commit 7c650cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/content/docs/config/widgets.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ const fixed = Widget.Fixed({

### FlowBox

subclass of [Gtk.FlowBox](https://gjs-docs.gnome.org/gtk30~3.0/gtk.FlowBox)
subclass of [Gtk.FlowBox](https://gjs-docs.gnome.org/gtk30~3.0/gtk.flowbox)

:::note
`Gtk.FlowBox` is not yet subclassed to be declarative and doesn't have
Expand Down Expand Up @@ -522,7 +522,7 @@ const discrete = Widget.LevelBar({

### ListBox

subclass of [Gtk.ListBox](https://gjs-docs.gnome.org/gtk30~3.0/gtk.ListBox)
subclass of [Gtk.ListBox](https://gjs-docs.gnome.org/gtk30~3.0/gtk.listbox)

:::note
`Gtk.ListBox` is not yet subclassed to be declarative and doesn't have
Expand Down Expand Up @@ -672,7 +672,7 @@ subclass of [Gtk.ScrolledWindow](https://gjs-docs.gnome.org/gtk30~3.0/gtk.scroll
const scrollable = Widget.Scrollable({
hscroll: 'always',
vscroll: 'never',
style: 'min-width: 20px;',
css: 'min-width: 20px;',
child: Widget.Label('Lorem ipsum dolor sit amet, ' +
'officia excepteur ex fugiat reprehenderit enim ' +
'labore culpa sint ad nisi Lorem pariatur mollit'),
Expand Down Expand Up @@ -730,12 +730,12 @@ subclass of [Gtk.SpinButton](https://gjs-docs.gnome.org/gtk30~3.0/gtk.spinbutton
|----------|------|
| on-value-changed | `() => void` |
| range | `[min: number, max: number]` |
| incements | `[step: number, page: number]` |
| increments | `[step: number, page: number]` |

```js
const spinbutton = Widget.SpinButton({
range: [0, 100],
incements: [1, 5],
increments: [1, 5],
onValueChanged: ({ value }) => {
print(value)
},
Expand Down

0 comments on commit 7c650cc

Please sign in to comment.