friendsofvictoire / table-widget
此包已被放弃,不再维护。未建议替代包。
Victoire DCMS 表格小部件
2.1.5
2017-04-03 12:42 UTC
Requires
- php: >=5.5.9
- symfony/framework-bundle: ~2.8|~3.0
- victoire/victoire: ~2|~3.0
This package is not auto-updated.
Last update: 2021-12-21 22:44:52 UTC
README
此包的用途是什么
此包为您提供访问 表格小部件 的权限。使用此小部件,您可以在任何页面上安装表格。
您可以更改任何行或列的顺序。
设置Victoire
如果您还没有设置,可以按照以下步骤在 这里 设置Victoire
安装包
运行以下composer命令
php composer.phar require victoire/table-widget
提示
别忘了在您的AppKernel中添加此包!
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
...
new Victoire\Widget\TableBundle\VictoireWidgetTableBundle(),
);
return $bundles;
}
}
前端依赖
Redactor 和 X-Editable
要使表格小部件工作,您需要 redactorjs 和 x-editable。
您可以使用 bower 获取这些供应商
"dependencies": { "redactor": "https://github.com/lenybernard/bower-redactor/archive/10.2.5.zip", "x-editable": "~1.5.1" }
并加载以下样式表文件
"@bowerDirectory/redactor/redactor/redactor.less"
"@bowerDirectory/x-editable/dist/js/bootstrap3-editable/css/bootstrap-editable.css"
并加载以下javascript文件
"@bowerDirectory/redactor/redactor/redactor.min.js"
"@bowerDirectory/redactor/redactor/langs/fr.js"
"@bowerDirectory/redactor/redactor/plugins/fontcolor/fontcolor.js"
"@bowerDirectory/redactor/redactor/plugins/fontfamily/fontfamily.js"
"@bowerDirectory/redactor/redactor/plugins/fontsize/fontsize.js"
"@bowerDirectory/x-editable/dist/js/bootstrap3-editable/js/bootstrap-editable.min.js"
其中 @bowerDirectory 是在您的 .bowerrc 文件中设置的目录