Bus UI DateInput
DateInput keeps dates in browser-native form.
Use DateInput when a workflow or filter needs a native date control
whose value stays empty or in YYYY-MM-DD form.
Validated surface
| Function | DateInput, DateInputChecked, DateInputNodeChecked |
|---|---|
| Props | Explicit checked-helper arguments; no DateInputProps type is currently exported. |
| Import path | github.com/busdk/bus-ui/pkg/ui |
| Use for | Date filters, posting-date fields, and workflow forms with native date validation. |
Example
Loading DateInput demo...
Go API
import (
ui "github.com/busdk/bus-ui/pkg/ui"
)
node, err := ui.DateInputNodeChecked(
"posting_date",
"2026-06-14",
nil,
nil,
)
.gx source
In .gx source, author the visible component state as GX markup.
Keep the Go API block above for the package helper or render-boundary call.
package busuiexamples
import gx "github.com/busdk/bus-gx/pkg/gx"
func DateInputExample() gx.Node {
return <label class="field" for="description">
<Text value={"Description"}></Text>
<input id="description" name="description" type="date"></input>
</label>
}