navigator (page links)
<navigator url="../databaseGuide/databaseGuide" open-type="navigate" class="uploader-text">
<Text> tip operating database </ text>
</navigator>
Attributes | Types of | Defaults | Mandatory | Explanation |
---|---|---|---|---|
target | string | self | no | Jump occur on which target, the current default |
url | string | no | The current small program within the jump path links pointing to wxml file (no extension) | |
open-type | string | navigate | no | Jump way (literally: Open) |
delta | number | 1 | no | When the open-type is 'navigateBack' when active, indicates the number of layers backoff |
app-id | string | no | When target="miniProgram" active, to open the applet appId |
|
path | string | no | When target="miniProgram" active, open the Page path, if it is empty then open the Home |
|
extra-data | object | no | When target="miniProgram" valid, the applet need to pass data to the target, the target program may be small App.onLaunch() , App.onShow() acquired in this data. Detail |
|
version | string | release | no | When target="miniProgram" active, the smaller version of the program you want to open |
bindsuccess | string | no | When target="miniProgram" active, the program jumps small success |
|
bindfail | string | no | When target="miniProgram" active, jump small program fails |
|
bindcomplete | string | no | When target="miniProgram" active, jump small program completed |
|
hover-class | string | navigator-hover | no | When the class specified style click when hover-class="none" the time no click state effect (gray), may themselves rewritable .navigator-hover { color:greenyellow;} You can define new classes .other-navigator-hover {color: red;} |
hover-stop-propagation | boolean | false | no | Specifies whether to prevent this node ancestor node (?) Appears Click state ? ? ? |
hover-start-time | number | 50 | no | After holding down long appeared Click state, in milliseconds (but might click on the state, so it was already a successful jump page) |
hover-stay-time | number | 600 | no | When you release your finger click-state retention time , in milliseconds (but likely to click state has not disappeared, the page had been successful jump) |
Target of legal values
value | Explanation |
---|---|
self | Current applet |
applet | Other small program |
Legal value of open-type
Open
value | Explanation | Minimum version |
---|---|---|
navigate | Corresponds wx.navigateTo or wx.navigateToMiniProgram function | |
redirect | The corresponding wx.redirectTo function | |
switchTab | The corresponding wx.switchTab function | |
reLaunch | The corresponding wx.reLaunch function | 1.1.0 |
navigateBack | The corresponding wx.navigateBack function | 1.1.0 |
exit | Exit (current) applet, target="miniProgram" upon entry into force |
2.1.0 |
Version of legal values
value | Explanation | Minimum version |
---|---|---|
develop | beta version | |
trial | Trial Version | |
release | The official version, this parameter is valid only when the current program for the development of small version or trial version; if the current applet is the official version, open the applet must be the official version. |