Multi-view container

Updated at:

Introduction

The multi-view container component displays different content within a block based on data. You can use this component in a grid layout.

image

Configuration items

Category

Configuration

Example

Description

Content

View configuration

Add multiple views as needed. Each view includes configuration information such as a key, title, description, and a disabled setting.

Interaction

Hide

Hides the component. For more information, see Common properties.

Load

Displays a loading animation.

Style

Height

Component height. For more information, see Common properties.

Padding

Component padding. For more information, see Common properties.

Margin

Component margin. For more information, see Common properties.

CSS style

Overflow

Sets the overflow effect (overflow). Options include `auto` (scroll), `hidden`, and `visible`.

Background

image

Background

Background image

image

Background image

Background color

Background color (background-color)

Shadow

image

Shadow (box-shadow)

Border radius

Sets the border radius (border-radius).

Border

Border

Top border

Top border (border-top)

Bottom border

Bottom border (border-bottom)

Left border

Left border (border-left)

Right border

Sets the right border (border-right).

Properties and methods

Name

Type

Example

Description

isHover

boolean

multipleViewContainer.isHover

Indicates whether the mouse pointer is inside the component.

loading

boolean

multipleViewContainer.loading

Indicates whether the component is loading. A loading animation is displayed.

mobiViews

array

multipleViewContainer.mobiViews

The view configuration data for the component.

mobiCurrentView

string

multipleViewContainer.mobiCurrentView

The data for the current view of the component.

getMultipleViews

func

multipleViewContainer.getMultipleViews()

Gets the view data for the component.

changeCurrentView

func

multipleViewContainer.changeCurrentView('view1')

Changes the current view of the component.

setLoading

func

multipleViewContainer.setLoading(false)

Sets the loading state of the component.

setMobiCurrentView

func

multipleViewContainer.setMobiCurrentView('view1')

Sets the current view.

clearLoading

func

multipleViewContainer.clearLoading()

Clears the component's loading data.

clearMobiCurrentView

func

multipleViewContainer.clearMobiCurrentView()

Clears the component's current view data.

Event callbacks

Configuration

Description

Triggered when the component is clicked.

Triggered when the mouse pointer moves over the component.

Triggered when the mouse pointer moves out of the component.