plugins

package
v1.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 5 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoFlipPlugin added in v1.2.3

func AutoFlipPlugin(c echo.Context) templ.Component

AutoFlipPlugin 自动翻页插件(仅支持翻页模式)

func AutoScrollPlugin added in v1.2.3

func AutoScrollPlugin(c echo.Context) templ.Component

AutoScrollPlugin 自动滚动插件(仅支持滚动模式)

func ClockPlugin added in v1.2.3

func ClockPlugin(c echo.Context) templ.Component

ClockPlugin 在右下角显示当前时间的插件(支持拖动)

func ComigoXYZPlugin added in v1.2.3

func ComigoXYZPlugin(c echo.Context) templ.Component

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

func RenderAllPlugins(c echo.Context) templ.Component

RenderAllPlugins 渲染所有启用的插件

func RenderCustomPlugin added in v1.2.4

func RenderCustomPlugin(plugin config.CustomPlugin) templ.Component

RenderCustomPlugin 渲染单个自定义插件

func RenderCustomPlugins added in v1.2.4

func RenderCustomPlugins(c echo.Context) templ.Component

RenderCustomPlugins 根据当前页面渲染对应范围的自定义插件

func SamplePlugin added in v1.2.3

func SamplePlugin(c echo.Context) templ.Component

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL