Hi
This 5th installment of webix tuts deals with how one can create toolbars. These sit on the Rows collection of your page and can have a variety of elements like buttons, toggle buttons and icons.
Like any WixElement, one can set the height of the toolbar and also set some default configuration that will be applied to the child elements.
In this session, we will do the following:
1. Add a header title to our page with 'Lesson 5: WixToolBar'
2. Create a toolbar and add buttons, toggles and icons to it and bind some events to the buttons
3. Add the toolbar to the page
4. Show a 'message' and also explore the Confirm dialog box available in Webix.
The code module for this exercise is pgToolbar.
Adding the header
We initialize our page and easily define a WixHeader and set the template and add this to the Rows Collection of the WixPage element.
This 5th installment of webix tuts deals with how one can create toolbars. These sit on the Rows collection of your page and can have a variety of elements like buttons, toggle buttons and icons.
Like any WixElement, one can set the height of the toolbar and also set some default configuration that will be applied to the child elements.
In this session, we will do the following:
1. Add a header title to our page with 'Lesson 5: WixToolBar'
2. Create a toolbar and add buttons, toggles and icons to it and bind some events to the buttons
3. Add the toolbar to the page
4. Show a 'message' and also explore the Confirm dialog box available in Webix.
The code module for this exercise is pgToolbar.
Adding the header
B4X:
pg.Initialize("")
'
'create a header to add to the page
Dim hdr As WixHeader
hdr.Initialize("hdr")
hdr.Header.SetTemplate("Lesson 5: WixToolBar")
hdr.Header.AddToRows(pg.Page)
We initialize our page and easily define a WixHeader and set the template and add this to the Rows Collection of the WixPage element.