Home Manual Reference Source Test
import ArrayView from 'web-cell/source/view/ArrayView.js'
public class | source

ArrayView

Extends:

View → ArrayView

View for Array model

Decorators:

Test:

Constructor Summary

Public Constructor
public

constructor(element: Element, parent: View)

Member Summary

Public Members
public

Method Summary

Public Methods
public

clear(): *

public

indexOf(view: *, start: *): *

public

push(item: ...*): *

public

render(list: Iterable): ArrayView

public

valueOf(): *

Protected Methods
protected

Inherited Summary

From class View
public static
public get
public get

Parent view in current DOM tree

public get

Host element of a view in a Shadow DOM tree

protected get
protected get
public

name: *

public abstract

clear(): View

Reset this view to empty data

public abstract

Render this view with data or Update without data

public
public abstract

Get original data of this view

protected

Public Constructors

public constructor(element: Element, parent: View) source

Override:

View#constructor

Params:

NameTypeAttributeDescription
element Element
parent View
  • optional

Test:

Public Members

public template: * source

Public Methods

public clear(): * source

Reset this view to empty data

Override:

View#clear

Return:

*

public indexOf(view: *, start: *): * source

Params:

NameTypeAttributeDescription
view *
start *

Return:

*

public push(item: ...*): * source

Params:

NameTypeAttributeDescription
item ...*

Return:

*

public render(list: Iterable): ArrayView source

Render this view with data or Update without data

Override:

View#render

Params:

NameTypeAttributeDescription
list Iterable
  • optional

Return:

ArrayView

Test:

public valueOf(): * source

Get original data of this view

Override:

View#valueOf

Return:

*

Test:

Protected Methods

protected update(): ArrayView source

Return:

ArrayView