You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/routes/docs/[...3]modules/core.md
+39-15Lines changed: 39 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,11 @@ type InitOptions {
63
63
accountCenter?: AccountCenterOptions
64
64
apiKey?: string
65
65
notify?: Partial<NotifyOptions>
66
+
gas?: typeof gas
67
+
/**
68
+
* Object mapping for W3O components with the key being the component and the value the DOM element to mount the component to. This element must be available at time of package script execution.
69
+
*/
70
+
containerElements?: Partial<ContainerElements>
66
71
}
67
72
```
68
73
@@ -136,6 +141,11 @@ export type AccountCenter = {
An object mapping for W3O components with the key being the DOM element to mount the specified component to.
162
+
This defines the DOM container element for svelte to attach the component.
163
+
164
+
**NOTE**: containerElement must be a DOM element with a styleSheet property attached and the element must be available on the DOM at the time of component mounting.
165
+
For an example please see containerElement usage [here](https://github.com/blocknative/web3-onboard/blob/8531a73d69365f7d584320f1c4b97a5d90f1c34e/packages/demo/src/App.svelte#L227)
166
+
167
+
```typescript
168
+
typeContainerElements= {
169
+
// when using the accountCenter with a container el the accountCenter position properties are ignored
170
+
accountCenter?:string
171
+
}
172
+
```
173
+
150
174
**`notify`**
151
175
Notify provides by default transaction notifications for all connected wallets on the current blockchain. When switching chains the previous chain listeners remain active for 60 seconds to allow capture and report of an remaining transactions that may be in flight.
152
176
By default transaction notifications are captured if a DAppID is provided in the Onboard config along with the Account Center being enabled.
0 commit comments