parts

package
v0.0.0-...-0564b78 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 2 Imported by: 0

README

HLiveKit

A toolkit of useful functionality for HLive

Features:

  • Focus
    • Give a node input focus
  • On Diff Apply
    • Call a handler after a HLive diff has been applied in the browser
  • Component List
    • Manage a dynamic list of components, for example results of a search.
  • Component List Simple (Advanced)
    • Like a Component List but without the memory cleanup logic.

Ideas

  • Add client side interactions for real-time feedback
  • Key binding to, for example, submit a form?
  • x-cloak like feature
    • Hide things until HLive had initialised
  • Copy to clipboard
    • navigator.clipboard.writeText(<value>)
  • Drag and drop

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheRistretto

type CacheRistretto struct {
	// contains filtered or unexported fields
}

CacheRistretto cache adapter for Ristretto

func NewCacheRistretto

func NewCacheRistretto(cache *ristretto.Cache) *CacheRistretto

func (*CacheRistretto) Get

func (c *CacheRistretto) Get(key any) (any, bool)

func (*CacheRistretto) Set

func (c *CacheRistretto) Set(key any, value any)

type ComponentGetNodes

type ComponentGetNodes struct {
	*engine.ComponentMountable

	GetNodesFunc func() *engine.NodeGroup
}

ComponentGetNodes add a custom GetNodes function to ComponentMountable

func CGN

func CGN(name string, getNodesFunc func() *engine.NodeGroup, elements ...any) *ComponentGetNodes

CGN is a shortcut for NewComponentGetNodes

func NewComponentGetNodes

func NewComponentGetNodes(name string, getNodesFunc func() *engine.NodeGroup, elements ...any) *ComponentGetNodes

func (*ComponentGetNodes) GetNodes

func (c *ComponentGetNodes) GetNodes() *engine.NodeGroup

Jump to

Keyboard shortcuts

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