Git Product home page Git Product logo

indexlistview's Introduction

indexlistview

简介

indexlistview是一款OpenHarmony环境下带索引的城市选择组件。

效果展示

输入图片说明

安装

ohpm install indexlistview

版本和设备

/ 版本
DevEco Studio 4.1 Canary2
SDK 10
设备 Emulator(Next)

属性说明

属性 类型 含义 必传 备注
clickCallback (string) => void 回调函数 Y 回调给下游

使用说明

import { IndexCityListView } from 'index-listview/Index'
import promptAction from '@ohos.promptAction';
@Entry
@Component
struct Index {
  build() {
    Column() {
      IndexCityListView({
        clickCallback: (city: string) => {
          promptAction.showToast({ message: city })
        }
      })
    }
.width('100%')
  .height('100%')
}
}

贡献代码

使用过程中发现任何问题都可以提 Issue 给我,当然,我们也非常欢迎你给我发 PR 。

开源协议

本项目基于 Apache License 2.0 ,请自由地享受和参与开源。

indexlistview's People

Watchers

Ethan 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.