Skip to content

Commit

Permalink
add docs for DisplayDate/DisplayTime
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Aug 15, 2024
1 parent 3504b07 commit 0bf355e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/content/2-widgets/4-pickers/time-pickers.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ You can create a unified time input that allows users to select both a date and
core.NewTimeInput(b).SetTime(time.Now())
```

You can hide the date or time part of a unified time input:

```Go
core.NewTimeInput(b).SetTime(time.Now()).SetDisplayDate(false)
```

You can detect when the user changes the value of a unified time input:

```Go
Expand Down

0 comments on commit 0bf355e

Please sign in to comment.