Skip to content

Commit 67bd990

Browse files
committed
feat: menu androidBackgroundOpacity
1 parent 0f95706 commit 67bd990

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

content/plugins/menu.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,15 @@ npm install @nstudio/nativescript-menu
3434
col="1"
3535
src="{{imageIcon}}"
3636
options="{{addOptions}}"
37+
androidBackgroundOpacity="0.9"
3738
selected="{{selectOption}}"
3839
/>
3940
</GridLayout>
4041
</Page>
4142
```
4243

44+
`androidBackgroundOpacity` is Android-only and accepts values from `0` to `1`.
45+
4346
```typescript
4447
import { EventData, Page } from '@nativescript/core';
4548
import { DemoSharedNativescriptMenu } from '@demo/shared';
@@ -167,6 +170,7 @@ Registered at the View level, so they can be used on MenuButton, MenuImage, or o
167170
| options | Array&lt;MenuAction&gt; \| MenuAction | Alias setter that assigns menu |
168171
| menu | Array&lt;MenuAction&gt; \| MenuAction | Tap-to-open menu configuration |
169172
| contextMenu | Array&lt;MenuAction&gt; \| MenuAction | Long-press menu configuration |
173+
| androidBackgroundOpacity | number | Android-only background opacity for the glass menu (`0..1`) |
170174

171175
## Classes
172176

@@ -190,6 +194,7 @@ Both classes expose an options setter and emit selected events.
190194
- Supports nested submenu choreography, spring-style open, and animated close
191195
- Supports palette rows and single-selection state updates
192196
- Supports icon metadata for symbol, src, and font icon rendering
197+
- Supports `androidBackgroundOpacity` to tune menu glass opacity (`0..1`, e.g. `0.9`)
193198

194199
## License
195200

0 commit comments

Comments
 (0)