Git Product home page Git Product logo

zlistview's Introduction

ZListView

Cocos Creator ListView

用法参考Test.fire

ZListView 列表

@property({ type: [cc.Prefab], tooltip: '不同样式的item', visible: true, }) itemPrefabs: cc.Prefab[] = [];

@property({ type: cc.Integer, tooltip: '间距', visible: true, }) spacing = 0;

@property({ type: cc.Boolean, tooltip: '从队首开始排版/从队尾开始排版', visible: true, }) topToBottom = true

@property({ type: [cc.Object], tooltip: '列表数据', visible: true, }) listData: any[] = [];

@property({ type: cc.String, tooltip: '列表数据唯一标识的参数名', visible: true, }) listKey = 'id';

@property({ type: cc.String, tooltip: '列表数据组件类型的参数名', visible: true, }) listType = 'type'

ZListItem 所有item必须继承改类,实现 renderData 或者 set itemData

zlistview's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.