Skip to content

Commit

Permalink
Expose API to get supported widget list
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Nov 14, 2023
1 parent ddf2feb commit a633be5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/gui/widget.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package gui

import "github.com/fyne-io/defyne/internal/guidefs"

// WidgetClassList returns the list of supported widget & container classes.
// These can be used for passing to `CreateNew` or `EditorFor`.
func WidgetClassList() []string {
return guidefs.WidgetNames
}

0 comments on commit a633be5

Please sign in to comment.