Skip to content

Commit

Permalink
Add ForSerializedObject bool to SelectOneConfig and SelectManyConfig.
Browse files Browse the repository at this point in the history
Just add this field to have the ability to support serialized object for
selector by customizing template.
  • Loading branch information
raven-chen committed Mar 15, 2020
1 parent f58f25b commit 877b98a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions meta_select_many.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type SelectManyConfig struct {
SelectMode string // select, select_async, bottom_sheet
Select2ResultTemplate template.JS
Select2SelectionTemplate template.JS
ForSerializedObject bool
RemoteDataResource *Resource
RemoteDataHasImage bool
PrimaryField string
Expand Down
1 change: 1 addition & 0 deletions meta_select_one.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type SelectOneConfig struct {
Select2SelectionTemplate template.JS
RemoteDataResource *Resource
RemoteDataHasImage bool
ForSerializedObject bool
PrimaryField string
metaConfig
getCollection func(interface{}, *Context) [][]string
Expand Down

0 comments on commit 877b98a

Please sign in to comment.