Fyne API "widget.Calendar"

widget.Calendar


import "fyne.io/fyne/v2/widget"

Usage

type Calendar

type Calendar struct {
	BaseWidget

	OnChanged func(time.Time) `json:"-"`
}

Calendar creates a new date time picker which returns a time object

Since: 2.6

func NewCalendar

func NewCalendar(cT time.Time, changed func(time.Time)) *Calendar

NewCalendar creates a calendar instance

Since: 2.6

func (*Calendar) CreateRenderer

func (c *Calendar) CreateRenderer() fyne.WidgetRenderer

CreateRenderer returns a new WidgetRenderer for this widget. This should not be called by regular code, it is used internally to render a widget.