阿里云赞助

<cell>

<cell>

Summary

This component must be used as a subcomponent of a list component, which is for the performance optimizing during scrolling.

Child Components

This type of component supports all kinds of weex component as its child components.

Attributes

Notes: you can’t give <cell> a flex value. Width of <cell> is equal to the width of its parent component <list>, and you don’t need to specify its height.

  • keep-scroll-position {boolean}: v0.11+ List Whether to keep the last sliding position after inserting the Cell

Styles

common styles: check out the common styles

  • support flexbox related styles
  • support box model related styles
  • support position related styles
  • support opacity, background-color etc.

Notes: cell itself is a container, its layout info is managed by list, so specifying cell’s margin info will not work.

Events

common events: check out the common events

Example

please refer to List

Apache Incubator
Disclaimer: Apache Weex is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.


ApacheCopyright(c) 2017 The Apache Software Foundation. Licensed under the Apache License, Version 2.0