Quark
#
Modules #
quark/actionquark/appquark/bubblesquark/bufferquark/checkboxquark/cssquark/ctrquark/dialogquark/eventquark/fontquark/fsquark/hashquark/httpquark/indexquark/jsonbquark/keyboardquark/mediaquark/navquark/netquark/osquark/pathquark/pkgquark/screenquark/stepperquark/storagequark/testquark/typesquark/utilquark/viewquark/windowquark/wsquark/_bufferquark/_commonquark/_eventquark/_extquark/_md5quark/_sha1quark/_sha256quark/_utilquark/_watching
Quark v1.3.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 #
InitForegroundBackground
Class: NavigationStatus #
NavigationStatus #
@extendsViewController@template<P={},S={}>
navigationstatus.navStatus #
0=init or exit,1=background,2=foreground
@getnavStatus:NavStatus
navigationstatus.intoLeave(animate) #
When the component leaves
@paramanimate:number
navigationstatus.intoBackground(animate) #
When the component enters the background
@paramanimate:number
navigationstatus.intoForeground(animate) #
When the component enters the foreground
@paramanimate:number
Class: Navigation #
Navigation #
@extendsNavigationStatus@template<P={},S={}>
navigation.navStack #
@getnavStack:List<Navigation>
navigation.initFocus() #
When initializing navigation, return a focus view
navigation.registerNavigation(animate) #
Called when a navigation component is created
@paramanimate?:Uint@paramanimate:
navigation.unregisterNavigation(animate) #
Called when a navigation component is unmounted
@paramanimate?:Uint@paramanimate:
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 @returnboolean
navigation.navigationEnter(focus) #
Called when the remote control presses OK
@paramfocus:View
navigation.navigationTop(focus) #
- Called when the remote control presses Up
- The focus will not change in any way is returning null
@paramfocus:View|null@returnView|null
navigation.navigationDown(focus) #
- Called when the remote control presses Down
- The focus will not change in any way is returning null
@paramfocus:View|null@returnView|null
navigation.navigationLeft(focus) #
- Called when the remote control presses Left
- The focus will not change in any way is returning null
@paramfocus:View|null@returnView|null
navigation.navigationRight(focus) #
- Called when the remote control presses Right
- The focus will not change in any way is returning null
@paramfocus:View|null@returnView|null
navigation.navigationMenu() #
When pressing the menu button, it will be called up
Class: NavPageCollection #
NavPageCollection #
@extendsNavigation@template<P={},S={}>
navpagecollection.enableAnimate #
enableAnimate:boolean
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 #
@extendsNavigationStatus@template<P={},S={}>
navbar.hidden
hidden:boolean
navbar.visibleBackIcon #
visibleBackIcon:boolean
navbar.visibleBackText #
visibleBackText:boolean
navbar.backTextColor #
backTextColor:types.ColorStrIn
navbar.titleTextColor #
titleTextColor:types.ColorStrIn
navbar.page #
@getpage:NavPage
navbar.setBackText(value) #
Set navbar back text
@paramvalue:string
navbar.setTitleText(value) #
Set navbar title text
@paramvalue:string
Class: NavPage #
NavPage #
@extendsNavigation@template<P={},S={}>
navpage.prevPage #
navpage.nextPage #
navpage.collection #
@getcollection:NavPageCollection
navpage.isCurrent #
@getisCurrent:boolean
navpage.isFirstPage #
@getisFirstPage:boolean
navpage.backgroundColor #
backgroundColor:types.ColorStrIn
navpage.title #
title:string
navpage.navbar #
navpage.navbarHidden
navbarHidden:boolean
navpage.includeNavbarPadding #
includeNavbarPadding:boolean
navpage.navbarHeight #
@getnavbarHeight:number