Documentation
¶
Overview ¶
templ: version: v0.3.977
templ: version: v0.3.977
templ: version: v0.3.977
templ: version: v0.3.977
templ: version: v0.3.977
templ: version: v0.3.977
templ: version: v0.3.977
Index ¶
- func AutoFlipPlugin(c echo.Context) templ.Component
- func AutoScrollPlugin(c echo.Context) templ.Component
- func ClockPlugin(c echo.Context) templ.Component
- func ComigoXYZPlugin(c echo.Context) templ.Component
- func RenderAllPlugins(c echo.Context) templ.Component
- func RenderCustomPlugin(plugin config.CustomPlugin) templ.Component
- func RenderCustomPlugins(c echo.Context) templ.Component
- func SamplePlugin(c echo.Context) templ.Component
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoFlipPlugin ¶ added in v1.2.3
AutoFlipPlugin 自动翻页插件(仅支持翻页模式)
func AutoScrollPlugin ¶ added in v1.2.3
AutoScrollPlugin 自动滚动插件(仅支持滚动模式)
func ClockPlugin ¶ added in v1.2.3
ClockPlugin 在右下角显示当前时间的插件(支持拖动)
func ComigoXYZPlugin ¶ added in v1.2.3
ComigoXYZPlugin 在书架底部添加软件项目首页功能块。需要限定域名的时候:(c.Request().Host == "comigo.xyz" || strings.HasSuffix(c.Request().Host, ".comigo.xyz")) x-init="$nextTick(() => { $el.value = selectedIndex; })" 确保:使用 $nextTick 等待 Alpine.js 完成所有 DOM 更新(包括 x-for 生成的选项)在下一个渲染周期中强制设置 select 元素的值 这样可以保证选项已经生成后再设置默认选中值
func RenderAllPlugins ¶ added in v1.2.3
RenderAllPlugins 渲染位置无关的启用插件
func RenderCustomPlugin ¶ added in v1.2.4
func RenderCustomPlugin(plugin config.CustomPlugin) templ.Component
RenderCustomPlugin 渲染单个自定义插件
func RenderCustomPlugins ¶ added in v1.2.4
RenderCustomPlugins 根据当前页面渲染对应范围的自定义插件
Types ¶
This section is empty.