2017 © Pedro Peláez
 

library ui-tools

A Library of helpers and adapters to ease web development

image

gaboacosta/ui-tools

A Library of helpers and adapters to ease web development

  • Thursday, December 26, 2013
  • by gaboAcosta
  • Repository
  • 1 Watchers
  • 0 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

GaboAcosta UI-Tools, (*1)

This is a library I'm building to make my work easier, (*2)

Currently I'm working a lot with zurb/foundation and Laravel and one of the must cumbersome part of the development to me is coding a navigation bar which is aware of the route it's in so it can highlight menus and elements to provide a visual guide., (*3)

Here is where the NavBar part of the UI-Tools comes into play., (*4)

To start add to the requirements in your composer.json:, (*5)

"gaboacosta/ui-tools": "dev-master"

Next, copy the file /vendor/gaboacosta/ui-tools/GaboAcosta/UITools/NaviGation/config.navBar.php to your /app/config folder, dont forget to rename it. You should now have /app/config/navBar.php, (*6)

Next open up in your favorite editor /app/config/app.php and add this line to the providers array:, (*7)

'GaboAcosta\UITools\Navigation\NavBarServiceProvider',

And this to your aliases array:, (*8)

'NavBar'          => 'GaboAcosta\UITools\Navigation\FoundationNavBar',

Then open up the config file /app/config/navBar.php, (*9)

Please note that the array for the menu entries is called routes, this means that as of this release you must bind every menu item to a named route, I've provided a field called implemented so you can elements which don't have a route yet, but the link to those will be just a #, (*10)

http://laravel.com/docs/routing#named-routes, (*11)

Finally In the layout or view where you want to display this menu just call:, (*12)

NavBar::render()

Please help me improve this project by reporting issues or making pull request to add functionality, (*13)

Also please remember that you will have to manually get zurb/foundation working in your project to be able to use this library., (*14)

http://foundation.zurb.com/docs/, (*15)

The Versions

26/12 2013

dev-master

9999999-dev

A Library of helpers and adapters to ease web development

  Sources   Download

MIT

by Gabriel Acosta