button-share
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

button-share

A button to share app state as compressed URL and recover it.

npm i button-share pnpm add button-share yarn add button-share

API

# ButtonShareElement src/button-share.ts#L18

} & __module & {

# Boolean src/sigl/dist/types/index.d.ts#L9

    undefined | boolean

# Number src/sigl/dist/types/index.d.ts#L8

    undefined | number

# String src/sigl/dist/types/index.d.ts#L7

    undefined | string

}, "transition">>
# context src/sigl/dist/types/sigl.d.ts#L26
# dispatch src/sigl/dist/types/events.d.ts#L4

    Dispatch<

    # (name, detail, init)

      # name

        Event | Narrow<K, string>

      # detail
      # init

        CustomEventInit<any>

      <K, E>(name, detail, init)  =>

        any

>
# enableEndMark  =  false src/button-share.ts#L20

    boolean

# getSerializedState src/button-share.ts#L23

    # ()

      ()  =>

        string

# hashPrefix  =  's=' src/button-share.ts#L21

    string

# host src/sigl/dist/types/sigl.d.ts#L24
# mode  =  9 src/button-share.ts#L19

    number

# onmounted
# onopened
# onready
# onshare
# onunmounted
# openURL src/button-share.ts#L24

    # (url)

      # url

        Location | URL

      (url)  =>

        void

# created(ctx)

created(ctx)  =>

    void
# mounted($) src/button-share.ts#L26

mounted($)  =>

    void
# on(name)
# toJSON()
# ButtonShareEvents src/button-share.ts#L5
# ready src/button-share.ts#L6

    CustomEvent

# share src/button-share.ts#L7
}

Credits

Contributing

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2022 stagas

Readme

Keywords

none

Package Sidebar

Install

npm i button-share

Weekly Downloads

18

Version

1.0.0

License

MIT

Unpacked Size

1.54 MB

Total Files

18

Last publish

Collaborators

  • stagas