Quark
#
Modules #
quark/actionquark/appquark/bubblesquark/bufferquark/checkboxquark/cssquark/ctrquark/defsquark/dialogquark/eventquark/fontquark/fsquark/hashquark/httpquark/indexquark/jsonbquark/keyboardquark/lmdbquark/mediaquark/navquark/netquark/osquark/pathquark/pkgquark/screenquark/statequark/stepperquark/storagequark/testquark/typesquark/uriquark/utilquark/viewquark/windowquark/wsquark/_bufferquark/_commonquark/_decoratorsquark/_eventquark/_extquark/_md5quark/_sha1quark/_sha256quark/_utilquark/_watching
Quark v1.4.0 Documentation
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 #
Extends: ViewController
Type parameters: P = {}, S = {}
navigationstatus.navStatus #
0=init or exit,1=background,2=foreground
readonly navStatus: NavStatus
navigationstatus.intoLeave(animate) #
When the component leaves
intoLeave(animate: number)
navigationstatus.intoBackground(animate) #
When the component enters the background
intoBackground(animate: number)
navigationstatus.intoForeground(animate) #
When the component enters the foreground
intoForeground(animate: number)
Class: Navigation #
Navigation #
Extends: NavigationStatus
Type parameters: P = {}, S = {}
navigation.navStack #
readonly navStack: List<Navigation>
navigation.initFocus() #
When initializing navigation, return a focus view
initFocus(): View | null
navigation.registerNavigation(animate) #
Called when a navigation component is created
registerNavigation(animate?: Uint, animate: any)
navigation.unregisterNavigation(animate) #
Called when a navigation component is unmounted
unregisterNavigation(animate?: Uint, animate: any)
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
navigationBack(): boolean
navigation.navigationEnter(focus) #
Called when the remote control presses OK
navigationEnter(focus: View)
navigation.navigationTop(focus) #
- Called when the remote control presses Up
- The focus will not change in any way is returning null
navigationTop(focus: View | null): View | null
navigation.navigationDown(focus) #
- Called when the remote control presses Down
- The focus will not change in any way is returning null
navigationDown(focus: View | null): View | null
navigation.navigationLeft(focus) #
- Called when the remote control presses Left
- The focus will not change in any way is returning null
navigationLeft(focus: View | null): View | null
navigation.navigationRight(focus) #
- Called when the remote control presses Right
- The focus will not change in any way is returning null
navigationRight(focus: View | null): View | null
navigation.navigationMenu() #
When pressing the menu button, it will be called up
navigationMenu()
Class: NavPageCollection #
NavPageCollection #
Extends: Navigation
Type parameters: P = {}, S = {}
navpagecollection.enableAnimate #
enableAnimate: boolean
navpagecollection.isCurrent(page) #
isCurrent(page: NavPage): boolean
navpagecollection.push(arg,animate?) #
Add a navigation page to the end and display
push(arg: VDom<NavPage>, animate?: boolean)
navpagecollection.pop(animate?,count?) #
Remove pages from the end of the navigation
pop(animate?: boolean, count?: Uint)
Class: Navbar #
Navbar #
Extends: NavigationStatus
Type parameters: 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 #
readonly page: NavPage
navbar.setBackText(value) #
Set navbar back text
setBackText(value: string)
navbar.setTitleText(value) #
Set navbar title text
setTitleText(value: string)
Class: NavPage #
NavPage #
Extends: Navigation
Type parameters: P = {}, S = {}
navpage.prevPage #
readonly prevPage: NavPage | null
navpage.nextPage #
readonly nextPage: NavPage | null
navpage.collection #
readonly collection: NavPageCollection
navpage.isCurrent #
readonly isCurrent: boolean
navpage.isFirstPage #
readonly isFirstPage: boolean
navpage.backgroundColor #
backgroundColor: types.ColorStrIn
navpage.title #
title: string
navpage.navbar #
navbar: VDom<Navbar>
navpage.navbarHidden #
navbarHidden: boolean
navpage.includeNavbarPadding #
includeNavbarPadding: boolean
navpage.navbarHeight #
readonly navbarHeight: number