【文件属性】:
文件名称:bootstrap-navbar:帮助程序生成Twitter Bootstrap导航栏
文件大小:19KB
文件格式:ZIP
更新时间:2021-01-29 23:05:10
bootstrap bootstrap-navbar BootstrapRuby
BootstrapNavbar
帮助程序生成Bootstrap样式导航栏
安装
该gem仅提供一个带有生成HTML方法的帮助程序模块。 其他gem可以使用它来使这些帮助程序可用于框架的渲染引擎,例如:
对于Rails: :
对于 : :
简而言之:除非您知道自己在做什么,否则请不要在应用程序中直接使用此gem!
要求
仅支持Bootstrap> = 2.1.0。 不过,它可能也适用于早期版本。
建立
设置bootstrap_version(必需)
BootstrapNavbar需要知道它正在处理哪个版本的Bootstrap,因为每个版本与上一个版本相比都有很小的变化。
BootstrapNavbar . configure do | config |
config . bootstrap_version = '4.0.0'
end
设置current_url_method(必需)
呈现导航栏时,BootstrapNavbar必须能够查询当前URL,例如,确定菜单项是否处于活动状态。 由于确定当前URL的方式因您是否使用Rails,Sinatra等而异,因此必须在某
【文件预览】:
bootstrap-navbar-master
----LICENSE.txt(1KB)
----lib()
--------bootstrap-navbar()
--------bootstrap-navbar.rb(510B)
----Gemfile(40B)
----Guardfile(326B)
----bootstrap-navbar.gemspec(1KB)
----spec()
--------bootstrap-navbar()
--------spec_helper.rb(430B)
--------support()
----Rakefile(86B)
----.travis.yml(125B)
----README.md(4KB)
----.gitignore(13B)
----CHANGELOG.md(1KB)