Code Monkey home page Code Monkey logo

more's Introduction

More

See More(查看更多)

Install

git clone https://github.com/huyanan/more.git

Useage

  • more(wrap,item,max,toggleButton);
  • Like more($('.wrap'),'.item',6,null);

Params

Wrap

  1. Type: jQuery Element or selector
  2. Describe: Container selector or jQuery Elements.
  3. Like: $('#oneTable') or '.bootTable'

Item

  1. Type: selector
  2. Describe: The content of the selector.
  3. Like: 'tr' or 'tbody tr' or '.views-row'

Max

  1. Type: Number
  2. Describe: The Number of how many Elements you want to visible
  3. Like: 6

ToggleButton

  1. default $('See More');
  2. Type: jQuery Elements
  3. Describe: Button for folding content
  4. Like: $('See More')

Button Style

/**
 * Normal Button styles
 **/
.btn{
  
}
/**
 * See More Button styles
 **/
.lookmore{
 //background-color:blue;
}
/**
 * Button styles on compress
 **/
.lookmore.compress{
 background-image:url(compress.jpg);
}
/**
 * Button styles on expand
 **/
.lookmore.expand{
 background-image:url(expand.jpg);
}

If you pass the toggleButton,please change styles with you className;

Run the demo

You need a server like APACHE Please visit the Url http://localhost/more/demo/more.html

TODO

  1. Use the jquery - boilerplate refactoring plug-in

License

MIT License © Zeno Rocha

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.