Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat program API menu


May 19, 2021 WeChat Mini Program Development Document


Table of contents


Object wx.getMenuButtonBoundingClientRect()

Base library 2.1.0 starts to support, and low versions need to be compatible.

Gets the layout location of the menu button (the capsule button in the upper right corner). The coordinate information is based on the upper left corner of the screen.

Returns a value

Object

The layout location of the menu button

Property Type Description
width number Width, in px
height number Height, in px
top number Upper boundary coordinates, in px
right number Right boundary coordinates, in px
bottom number Lower boundary coordinates, in px
left number Left boundary coordinates, in px