一组PHP和JavaScript包解决每天前端问题刺激和涡轮。
\/\/ I need Twig templates that update in real-time!<\/span>^500
$ <\/span>composer require symfony\/ux-live-component","\/\/ I need to create PHP classes that render<\/span>^500
$ <\/span>composer require symfony\/ux-twig-component","\/\/ I need an Ajax-autocomplete select field<\/span>^500
$ <\/span>composer require symfony\/ux-autocomplete","\/\/ I need stylized page transitions<\/span>^500
$ <\/span>composer require symfony\/ux-swup","\/\/ I need to render React components from Twig<\/span>^500
$ <\/span>composer require symfony\/ux-react","\/\/ I need to add a JavaScript image cropper<\/span>^500
$ <\/span>composer require symfony\/ux-cropperjs","\/\/ I need to delay large image loading<\/span>^500
$ <\/span>composer require symfony\/ux-lazy-image","\/\/ I need to build a chart<\/span>^500
$ <\/span>composer require symfony\/ux-chartjs","\/\/ I need to type onto the screen... like this<\/span>^500
$ <\/span>composer require symfony\/ux-typed","\/\/ I need an upload field that looks great<\/span>^500
$ <\/span>composer require symfony\/ux-dropzone","\/\/ I need to render Vue.js components from Twig<\/span>^500
$ <\/span>composer require symfony\/ux-vue","\/\/ I need to transform my app into an SPA!<\/span>^500
$ <\/span>composer require symfony\/ux-turbo","\/\/ I need to send browser notifications<\/span>^500
$ <\/span>composer require symfony\/ux-notify"]" data-symfony--ux-typed-loop-value="true" data-symfony--ux-typed-show-cursor-value="true" data-symfony--ux-typed-type-speed-value="20" data-symfony--ux-typed-cursor-char-value="🖱" data-symfony--ux-typed-content-type-value="html">
美元作曲家需要symfony / weob娱乐下载bpack-encore-bundle美元npm安装美元npm运行看
刺激控制器
模板/ anything.html.twig
<div{{stimulus_controller(减价)}}><文本区域{{stimulus_target(“减价”、“输入”)}}>编写JavaScript是一个* * * *梦想与刺激< /文本区域><按钮{{stimulus_action(“减价”、“渲染”)}}>渲染减价< /按钮><div{{stimulus_target(“减价”、“预览”)}}>< /div>< /div>
资产/控制器/ markdown_controller.js
进口{控制器}从“@hotwired /刺激”;进口snarkdown从“snarkdown”;出口默认的类扩展控制器{静态目标= [“输入”,“预览”];呈现(事件){常量呈现= snarkdown (这.inputTarget.value);这.previewTarget。innerHTML =呈现;}}