Skip to content

Commit ed5b123

Browse files
committed
update information about renderer [ci skip]
1 parent 3daf297 commit ed5b123

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ $builder = new anlutro\Menu\Builder;
2323
$menu = $builder->createMenu('left');
2424
```
2525

26-
By default, Bootstrap 3-specific classes are used. If you want to use something else, pass an array of custom data into the Builder's constructor. You can see what the default settings look like [here](https://github.com/anlutro/php-menu/blob/master/src/config/config.php).
27-
2826
If you're using Laravel 4, you can use `Menu::` instead of `$builder->` provided you set up an alias as shown in the installation instructions above.
2927

3028
From here, you can add items to your menus from anywhere.
@@ -54,6 +52,8 @@ When you want to render a menu, call render($menu) and echo it.
5452
echo $builder->render('left');
5553
```
5654

55+
By default, Bootstrap 3-specific classes are used. If you want to use something else, you need to create your own class implementation of `anlutro\Menu\Renderers\RendererInterface` and either do `$builder->setDefaultRenderer('MyRenderer')` or `$builder->render('name_of_menu', $myRenderer)`.
56+
5757
## Contact
5858

5959
Open an issue on GitHub if you have any problems or suggestions.

0 commit comments

Comments
 (0)