sortable

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...seed.Option) seed.Option

New makes the seed's children sortable and reorderable by a user.

func OnChange

func OnChange(do client.Script) seed.Option

OnChange runs the provided script when the order of the sortable is changed by the user.

func SetIDTo

func SetIDTo(s client.String) seed.Option

SetIDTo sets the sortable ID used for identifying an element.

func Update

func Update(variable *Order) seed.Option

Update sorts the array in the order specified by the given string.

func When

func When(condition client.Bool) seed.Option

When enables sorting by the user only when the provided condition is true.

Types

type Order

type Order struct {
	clientside.String
}

func (*Order) GetDefaultValue

func (order *Order) GetDefaultValue() client.Value

Jump to

Keyboard shortcuts

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