Quark
#
Modules #
quark/action
quark/app
quark/bubbles
quark/buffer
quark/checkbox
quark/css
quark/ctr
quark/dialog
quark/event
quark/font
quark/fs
quark/http
quark/index
quark/keyboard
quark/media
quark/nav
quark/os
quark/path
quark/pkg
quark/screen
quark/stepper
quark/storage
quark/test
quark/types
quark/util
quark/view
quark/window
quark/_common
quark/_event
quark/_ext
quark/_util
Quark v1.2.0 Documentation
Table of Contents
-
quark/nav
- Enum: NavStatus
- Class: NavigationStatus
-
Class: Navigation
- Navigation
- navigation.navStack
- navigation.initFocus()
- navigation.registerNavigation(animate)
- navigation.unregisterNavigation(animate)
- navigation.navigationBack()
- navigation.navigationEnter(focus)
- navigation.navigationTop(focus)
- navigation.navigationDown(focus)
- navigation.navigationLeft(focus)
- navigation.navigationRight(focus)
- navigation.navigationMenu()
- Class: NavPageCollection
- Class: Navbar
- Class: NavPage
quark/nav #
Enum: NavStatus #
NavStatus #
Init
Foreground
Background
Class: NavigationStatus #
NavigationStatus #
@extends
ViewController
@template
<P
={}
,S
={}
>
navigationstatus.navStatus #
0=init or exit,1=background,2=foreground
@get
navStatus
:NavStatus
navigationstatus.intoLeave(animate) #
When the component leaves
@param
animate
:number
navigationstatus.intoBackground(animate) #
When the component enters the background
@param
animate
:number
navigationstatus.intoForeground(animate) #
When the component enters the foreground
@param
animate
:number
Class: Navigation #
Navigation #
@extends
NavigationStatus
@template
<P
={}
,S
={}
>
navigation.navStack #
@get
navStack
:List
<Navigation
>
navigation.initFocus() #
When initializing navigation, return a focus view
navigation.registerNavigation(animate) #
Called when a navigation component is created
@param
animate?
:Uint
@param
animate
:
navigation.unregisterNavigation(animate) #
Called when a navigation component is unmounted
@param
animate?
:Uint
@param
animate
:
navigation.navigationBack() #
- When a navigation event occurs, the system will first send the event to the focus view,
If the event can be successfully transmitted to root,
The event will ultimately be sent to the top of the current navigation list stack - If false is returned here,
it will continue to pass to the bottom of the navigation list stack,
Until it returns true or reaches the bottom of the stack to exit the application @return
boolean
navigation.navigationEnter(focus) #
Called when the remote control presses OK
@param
focus
:View
navigation.navigationTop(focus) #
- Called when the remote control presses Up
- The focus will not change in any way is returning null
@param
focus
:View
|null
@return
View
|null
navigation.navigationDown(focus) #
- Called when the remote control presses Down
- The focus will not change in any way is returning null
@param
focus
:View
|null
@return
View
|null
navigation.navigationLeft(focus) #
- Called when the remote control presses Left
- The focus will not change in any way is returning null
@param
focus
:View
|null
@return
View
|null
navigation.navigationRight(focus) #
- Called when the remote control presses Right
- The focus will not change in any way is returning null
@param
focus
:View
|null
@return
View
|null
navigation.navigationMenu() #
When pressing the menu button, it will be called up
Class: NavPageCollection #
NavPageCollection #
@extends
Navigation
@template
<P
={}
,S
={}
>
navpagecollection.enableAnimate #
enableAnimate
:
navpagecollection.isCurrent(page) #
navpagecollection.push(arg,animate?) #
Add a navigation page to the end and display
navpagecollection.pop(animate?,count?) #
Remove pages from the end of the navigation
Class: Navbar #
Navbar #
@extends
NavigationStatus
@template
<P
={}
,S
={}
>
navbar.page #
@get
page
:NavPage
navbar.setBackText(value) #
Set navbar back text
@param
value
:string
navbar.setTitleText(value) #
Set navbar title text
@param
value
:string
Class: NavPage #
NavPage #
@extends
Navigation
@template
<P
={}
,S
={}
>
navpage.prevPage #
navpage.nextPage #
navpage.collection #
@get
collection
:NavPageCollection
navpage.isCurrent #
@get
isCurrent
:boolean
navpage.isFirstPage #
@get
isFirstPage
:boolean
navpage.title #
title
:string
navpage.navbar #
navpage.navbarHidden
navbarHidden
:boolean
navpage.includeNavbarPadding #
includeNavbarPadding
:boolean
navpage.navbarHeight #
@get
navbarHeight
:number