domtokenlist

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented    = errors.New("Browser not implemented DOMTokenList")
	ErrNotAnDOMTokenList = errors.New("Object is not a DOMTokenList")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface DOMTokenList

Types

type DOMTokenList

type DOMTokenList struct {
	baseobject.BaseObject
}

DOMTokenList struct

func NewFromJSObject

func NewFromJSObject(obj js.Value) (DOMTokenList, error)

func (DOMTokenList) Add

func (d DOMTokenList) Add(tokens ...string) error

func (DOMTokenList) Contains

func (d DOMTokenList) Contains(search string) (bool, error)

func (DOMTokenList) DOMTokenList_

func (d DOMTokenList) DOMTokenList_() DOMTokenList

func (DOMTokenList) Entries

func (d DOMTokenList) Entries() (iterator.Iterator, error)

func (DOMTokenList) ForEach

func (d DOMTokenList) ForEach(f func(string)) error

func (DOMTokenList) Item

func (d DOMTokenList) Item(index int) (interface{}, error)

func (DOMTokenList) Keys

func (d DOMTokenList) Keys() (iterator.Iterator, error)

func (DOMTokenList) Remove

func (d DOMTokenList) Remove(tokens ...string) error

func (DOMTokenList) Replace

func (d DOMTokenList) Replace(oldtoken, newtoken string) error

func (DOMTokenList) Supports

func (d DOMTokenList) Supports(token string) (bool, error)

func (DOMTokenList) Toggle

func (d DOMTokenList) Toggle(token string, force ...bool) (bool, error)

func (DOMTokenList) Values

func (d DOMTokenList) Values() (iterator.Iterator, error)

type DOMTokenListFrom

type DOMTokenListFrom interface {
	DOMTokenList_() DOMTokenList
}

Jump to

Keyboard shortcuts

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