Makes the entire subtree off the page, similar to using fixed position in CSS. It is mainly used to make pop-up windows, pop-up layers, etc.
Example
bxml
Code
js
Code
when use bn.createSelectorQuery, you may not get the dom in . add a second parameter in select funtion will make it work.
Example
Code
Props
| Name | Type | Description | Default |
|---|---|---|---|
enable | boolean | whether detached from the page | true |
Was this page helpful?
Last modified on