forked from mbk-lab/rui_orig
2
0
Fork 0

Update tabsLayout.go

This commit is contained in:
Alexei Anoshenko 2022-04-02 11:42:03 +03:00
parent 03799c329e
commit ae8bba0f63
1 changed files with 3 additions and 2 deletions

View File

@ -79,14 +79,15 @@ type tabsLayoutData struct {
} }
// NewTabsLayout create new TabsLayout object and return it // NewTabsLayout create new TabsLayout object and return it
func NewTabsLayout(session Session) TabsLayout { func NewTabsLayout(session Session, params Params) TabsLayout {
view := new(tabsLayoutData) view := new(tabsLayoutData)
view.Init(session) view.Init(session)
setInitParams(view, params)
return view return view
} }
func newTabsLayout(session Session) View { func newTabsLayout(session Session) View {
return NewTabsLayout(session) return NewTabsLayout(session, nil)
} }
// Init initialize fields of ViewsContainer by default values // Init initialize fields of ViewsContainer by default values