Reference Source
public class | source

Sidebar

Show a page that slides from the left or right of the map(with tab page)

See:

Static Method Summary

Static Public Methods
public static

Asynchronous initialization, it will run a method called sidebar_init if the method has been defined.

Constructor Summary

Public Constructor
public

constructor(options: Object)

Sidebar constructor

Member Summary

Public Members
public

options: *

Method Summary

Public Methods
public

hide()

public

open(id: String): Null

Open sidebar (if necessary) and show the specified tab.

public

removeContent(id: String): Null

Remove sidebar content

public

removeTab(id: String): Null

Remove sidebar tab

public

show()

Static Public Methods

public static async initAsync(): Promise<boolean> source

Asynchronous initialization, it will run a method called sidebar_init if the method has been defined.

Return:

Promise<boolean>

Public Constructors

public constructor(options: Object) source

Sidebar constructor

Params:

NameTypeAttributeDescription
options Object

Config params

options.position String

Slides from the left or right

options.init_open_id String

Open the page with the id when initialized

Public Members

public options: * source

Public Methods

public hide() source

public open(id: String): Null source

Open sidebar (if necessary) and show the specified tab.

Params:

NameTypeAttributeDescription
id String

The id of the tab to show

Return:

Null

public removeContent(id: String): Null source

Remove sidebar content

Params:

NameTypeAttributeDescription
id String

The id of the tab to show

Return:

Null

public removeTab(id: String): Null source

Remove sidebar tab

Params:

NameTypeAttributeDescription
id String

The id of the tab to show

Return:

Null

public show() source