Git Product home page Git Product logo

somegoodcustomview's Introduction

SomeGoodCustomView

里面目前共三个自定义控件,封装性较好,使用方法较友好。也欢迎大家把自己封装的好控件拿出来,一起分享和学习。详见Demo,欢迎批评指正。

一. 时间选择器

  • 代码。先调用show方法,再定义回调block。

image

  • 截图。控件内部加入了时间过滤(截图时间12-09 09:55)并记忆了上次的选择。

image

二. 多行输入框

  • 代码。设置数据,调用show方法,定义回调block。

image

  • 截图。控件内部加入了手机号、邮箱检测方法,提示方式也较合适,无耦合。

image

三. 日期选择器

  • 代码。先调用show方法,再定义回调block。

image

  • 截图。控件内部加入了简单的时间判断和非法选择时的提示,把合法的时间str传出去。

image

somegoodcustomview's People

Contributors

banchichen avatar

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.