LWT JavaScript API
Preparing search index...
shared/offline/offline-button
OfflineButtonData
Interface OfflineButtonData
Offline button component data.
interface
OfflineButtonData
{
downloadedAt
:
Date
|
null
;
downloadProgress
:
number
;
isAvailable
:
boolean
;
isDownloading
:
boolean
;
sizeBytes
:
number
;
statusMessage
:
string
;
storageSupported
:
boolean
;
textId
:
number
;
checkStatus
()
:
Promise
<
void
>
;
download
()
:
Promise
<
void
>
;
formatDate
(
date
:
Date
|
null
)
:
string
;
formatSize
(
bytes
:
number
)
:
string
;
init
()
:
Promise
<
void
>
;
remove
()
:
Promise
<
void
>
;
toggleOffline
()
:
Promise
<
void
>
;
}
Index
Properties
downloaded
At
download
Progress
is
Available
is
Downloading
size
Bytes
status
Message
storage
Supported
text
Id
Methods
check
Status
download
format
Date
format
Size
init
remove
toggle
Offline
Properties
downloaded
At
downloadedAt
:
Date
|
null
download
Progress
downloadProgress
:
number
is
Available
isAvailable
:
boolean
is
Downloading
isDownloading
:
boolean
size
Bytes
sizeBytes
:
number
status
Message
statusMessage
:
string
storage
Supported
storageSupported
:
boolean
text
Id
textId
:
number
Methods
check
Status
checkStatus
()
:
Promise
<
void
>
Returns
Promise
<
void
>
download
download
()
:
Promise
<
void
>
Returns
Promise
<
void
>
format
Date
formatDate
(
date
:
Date
|
null
)
:
string
Parameters
date
:
Date
|
null
Returns
string
format
Size
formatSize
(
bytes
:
number
)
:
string
Parameters
bytes
:
number
Returns
string
init
init
()
:
Promise
<
void
>
Returns
Promise
<
void
>
remove
remove
()
:
Promise
<
void
>
Returns
Promise
<
void
>
toggle
Offline
toggleOffline
()
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
downloaded
At
download
Progress
is
Available
is
Downloading
size
Bytes
status
Message
storage
Supported
text
Id
Methods
check
Status
download
format
Date
format
Size
init
remove
toggle
Offline
LWT JavaScript API
Loading...
Offline button component data.