package basics import ( "github.com/qor5/docs/docsrc/examples/e21_presents" "github.com/qor5/docs/docsrc/generated" "github.com/qor5/docs/docsrc/utils" . "github.com/theplant/docgo" "github.com/theplant/docgo/ch" h "github.com/theplant/htmlgo" ) var ManageMenu = Doc( Markdown(` Menu refers to the list on the left side of the page, such as the menu of the Demo below contains Customers and Companies. `), h.Br(), utils.Demo("Presets Detail Page Credit Cards", e21_presents.PresetsDetailPageCardsPath+"/customers", "e21_presents/detailing.go"), Markdown(` ## Menu order Sorting menus is very simple, use ~MenuOrder~ to sort menus as you want by **slug name** . `), ch.Code(generated.MenuOrderSample).Language("go"), utils.Demo("Menu Order", e21_presents.PresetsMenuOrderPath+"/books", "e21_presents/menu.go"), Markdown(` ## Menu group and icon ~MenuGroup~ can merge multiple items into one group, as shown in the following code. Use ~MenuIcon~ on ~ModelBuilder~ can set the item icon, and set menu group icon by ~Icon~ following ~MenuGroup~. Icon strings can be found at . `), ch.Code(generated.MenuGroupSample).Language("go"), utils.Demo("Menu Group", e21_presents.PresetsMenuGroupPath+"/videos", "e21_presents/menu.go"), ).Title("Menu"). Slug("basics/menu")