stinger/bootstrap-maxlength-js-bundle

Symfony2 Bundle for Bootstrap MaxLength.js - MaxLength属性的可视反馈指示器

安装数: 3,839

依赖: 0

建议者: 0

安全性: 0

星标: 0

关注者: 3

分支: 0

开放问题: 0

类型:symfony-bundle

1.6.0 2015-07-27 08:13 UTC

This package is auto-updated.

Last update: 2024-09-07 07:44:42 UTC


README

Bootstrap MaxLength Js Bundle for Symfony2

当前版本

Bootstrap MaxLength Js v1.6.0

安装

将包添加到您的composer.json文件中

// composer.json

{
    "require": {
		// ...
        "stinger/boostrap-maxlength-js-bundle": "~1.6"
    }
}

将包添加到您的应用程序内核中

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Stinger\BootstrapMaxLengthJsBundle\StingerBootstrapMaxLengthJsBundle(),
        // ...
    );
}

使用Composer下载包

$ php composer.phar update stinger/boostrap-maxlength-js-bundle

安装资源

假设您的服务器公共目录命名为"web",安装公共供应商资源

$ php app/console assets:install web

可选地,使用--symlink属性创建链接而不是复制资源

$ php app/console assets:install --symlink web

用法

将css和js文件添加到所需的位置

{% javascripts
	'bundles/stingerbootstrapmaxlengthjs/js/bootstrap-maxlength.min.js'
%}
	<script src="{{ asset_url }}" ></script>
{% endjavascripts %}

许可证

有关许可证信息,请参阅包含文件的源代码

参考

  1. https://github.com/mimo84/bootstrap-maxlength/
  2. https://symfony.com.cn