Sha256: ab4cb0cd10af9bc5faa4ebd36122293a6d4e0e6bd7416eb0104dff23b29265f2

Contents?: true

Size: 1.45 KB

Versions: 12

Compression:

Stored size: 1.45 KB

Contents

# This is where you can define the bootstrap admin menu.
# Menus can only have 2 levels (root level and secondary level [for dropdown menu entries]).
# You must supply a list of menu entries.
# To do that, you can use this set of options
# :label - the label that will be presented in the menu
# :class - the css class to apply to the item
# :url   - the url to be used on the item link.
# :item  - one of 3 things: a String, an Array or a Symbol
#          * String: must be a name of a model. The supplied model will be used to build
#                    the link url, as well as the label if not supplied
#          * Array:  This will indicate that the item is in fact a dropdown menu. In this case
#                    :label MUST be supplied.
#          * Symbol: currently only ":divider" is supported and produces a division between
#                    dropdown elements. In this case, both :label and :url will be ignored
#
#
# Examples:
# * Simple menu item based on a known model
# - :item: Document
#
# * Simple menu item based on a model with a custom label and a custom css class
# - :item: Author
#   :label: The guys who done things
#   :class: really_bold
#
# * Simple menu item based on a model with a custom url
# - :item: Search
#   :url: "https://google.com"
#
# * Dropdown menu item with several options and a divider
# - :label: "User Administration"
#   :url: "#"
#   :item:
#   - :item:  Role
#   - :item:  :divider
#   - :item:  User
#     :label: Dudes

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bootstrap_admin-1.0.1 lib/generators/bootstrap_admin/install/templates/bootstrap_admin_menu.yml
bootstrap_admin-1.0.0 lib/generators/bootstrap_admin/install/templates/bootstrap_admin_menu.yml
bootstrap_admin-0.0.18 lib/generators/bootstrap_admin/install/templates/bootstrap_admin_menu.yml
bootstrap_admin-0.0.17 lib/generators/bootstrap_admin/install/templates/bootstrap_admin_menu.yml
bootstrap_admin-0.0.15 lib/generators/bootstrap_admin/templates/bootstrap_admin_menu.yml
bootstrap_admin-0.0.14 lib/generators/bootstrap_admin/templates/bootstrap_admin_menu.yml
bootstrap_admin-0.0.13 lib/generators/bootstrap_admin/templates/bootstrap_admin_menu.yml
bootstrap_admin-0.0.12 lib/generators/bootstrap_admin/templates/bootstrap_admin_menu.yml
bootstrap_admin-0.0.11 lib/generators/bootstrap_admin/templates/bootstrap_admin_menu.yml
bootstrap_admin-0.0.10 lib/generators/bootstrap_admin/templates/bootstrap_admin_menu.yml
bootstrap_admin-0.0.9 lib/generators/bootstrap_admin/templates/bootstrap_admin_menu.yml
bootstrap_admin-0.0.8 lib/generators/bootstrap_admin/templates/bootstrap_admin_menu.yml