-
-
Notifications
You must be signed in to change notification settings - Fork 2
Publish
- pages
- menus
- menu_page
- examples
-
Navigation
-
SimpleMenu::menu.examplefor displaying the menu list.-
internally we get all the available menuNames and its corresponding pages then we check if there is a view file equal to the menu name ex.
menu.hero& if not we usemenu.exampleinstead, also in the view file you will get 2 variables- $PAGES : all the menu pages
- $menuName : in case you want to do something depend on menuName.
-
-
SimpleMenu::menu.partials.r_paramsto resolve route params across several views. -
SimpleMenu::menu.partials.nestedto render the descendants/childrens of each menu item. -
SimpleMenu::breadCrumbto display the current page breadCrumbs. "getAncestors" -
SimpleMenu::langSwitcherto display the supported locales while resolving the route params during redirection.
-
-
-
resources/assets/vendor/SimpleMenu- in your main app js file,
require('./path/to/vendor/SimpleMenu/js/comps') - in your main app scss file,
@import "path/to/vendor/SimpleMenu/sass/style";
- in your main app js file,
-
resources/lang/vendor/SimpleMenu. -
for styling we use bulma
Or Use another Framework
- duplicate
views/vendor/SimpleMenu/admin/bulmaand rename it to the framework you want ex.bootstrap - duplicate
resources/assets/vendor/SimpleMenu/js/bulmaand rename it to the framework you want ex.bootstrap - set
MIX_SM_FRAMEWORKto the framework name ex.MIX_SM_FRAMEWORK=bootstrap - start editing the new files.
- run
npm run watchto compile yourjs/cssfiles.
- duplicate
-