Reference Source
public class | source

SideDrawer

Extends:

* → SideDrawer

Class for the side drawer component.

Static Member Summary

Static Public Members
public static

Helper prop types.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Closes the drawer.

public

Component has mounted.

public

getParams(params: List): Object: *

Flattens a list of objects into an object with properties.

public

navigateToScreen(screen: string, params: Object): *

Navigate to a specified screen.

public

onItemPressed(item: Object): *

Function is called when a drawer item is pressed.

public

openDrawer(numNotifications: Number): *

Opens the drawer.

public

Render the contents of the drawer.

public

state: {"drawerOpen": *, "numNotifications": *, "profileData": *}

public

Toggles the side drawer open and closed.

Private Members
private

Extract the key from the item and index

private

_renderItem(item: Object): *

Render a text input item.

Method Summary

Public Methods
public

render()

Render the side drawer.

Static Public Members

public static propTypes: * source

Helper prop types.

Public Constructors

public constructor() source

Public Members

public closeDrawer: * source

Closes the drawer.

public componentDidMount: * source

Component has mounted.

public getParams(params: List): Object: * source

Flattens a list of objects into an object with properties. Example: Original: [{key: k1, value: v1}, {key: k2, value: v2}] After: {k1: v1, k2: v2}

Return:

Object

An object with properties

public navigateToScreen(screen: string, params: Object): * source

Navigate to a specified screen. Screen must be a possible navigation

public onItemPressed(item: Object): * source

Function is called when a drawer item is pressed.

public openDrawer(numNotifications: Number): * source

Opens the drawer.

public renderSideMenuContent: * source

Render the contents of the drawer.

public state: {"drawerOpen": *, "numNotifications": *, "profileData": *} source

public toggleDrawer: * source

Toggles the side drawer open and closed.

Private Members

private _keyExtractor: * source

Extract the key from the item and index

private _renderItem(item: Object): * source

Render a text input item.

Public Methods

public render() source

Render the side drawer.