Toot.svelte

view source

Declarations
#

Toot
#

Toot.svelte view source

import Toot from '@fuzdev/fuz_mastodon/Toot.svelte';

url

type string

updated_url?

Defaults to the url, but can be updated by user input.

type string
optional bindable default url

include_ancestors?

Whether to fetch and display the ancestors in the status context.

type boolean
optional default false

include_replies?

Whether to fetch and display replies aka descendants in the status context.

type boolean
optional default false

reply_filter?

Get a list of rules that controls whether replies are shown or not.

type ReplyFilter | ReplyFilter[] | CreateReplyFilters
optional

cache?

Optional API result cache. See MastodonCache and get_mastodon_cache/set_mastodon_cache.

type Map<string, { key: string; url: string; params: any; value: any; etag: string | null; last_modified: string | null; }>
optional

log?

Optional logger for network calls.

type Logger
optional

loading?

type boolean
optional bindable

load_time?

type number
optional bindable

settings_storage_key?

type string
optional

initial_show_settings?

type boolean
optional default false

show_settings?

type boolean
optional bindable

autoload_storage_key?

type string
optional default 'autoload'

initial_autoload?

type boolean
optional default false

autoload?

type boolean
optional default autoload_storage_key ? load_from_storage(autoload_storage_key, () => initial_autoload) : initial_autoload

onreset?

type () => void
optional

settings?

type Snippet<[]>
optional

Depends on
#