Giter VIP home page Giter VIP logo

bootstraprowsplitter's Introduction

Contact : You are free to contact me @ [email protected], if you have any queries.

BootstrapRowSplitter

Add bootstrap row while using ng-repeat.

When we want to add bootrap columns in different hights, then the rows will collapse. So in that case we need to add the needed columns for every row. So that the columns will not columns will not collapse.

This works based on the bootstrap 3.3.7 based media queries.

# Demo and Documentation #Configuration and options

  • bootstrap-row-splitter : Directive to be included in your html

  • shared-values : That is shared to the directive from the controller

  • options : Options for the directive

  • events : Events that is shared from the directive to the controller.

  • template-url : Template that should be passed to show the data using ng-repeat

  • Options : Options - This is a object with the following properties

#Options

  • calculateOnResize : This is to recalculate the split array on window resize (Default is false)

  • initializeValue : This is mandatory function for this directive This is the function used to initialize the value. This is usually used to do manipulation before spliting the array.

  • firstSplitSizes : This is the optional object. No of columns for the first row. This should mentioned with the properties as {lg: 3, md:2,sm:3,xs:2} like that.

  • mediaSizes : Mandatory object No of columns for the bootstrap rows. This should mentioned with the properties as {lg: 3, md:2,sm:3,xs:2} like that. If we missed to mention lg, then md size will be taken. If we missed to mention md, then sm size will be taken. If nothing has been mentioned, then size will be 1.

  • firstSplitCustomClass : Custom class for the first row coulmns.

  • arraySplitCustomClass : Custom class for the row columns

  • splitterParentClass : custom class for the row

#Events Events - This is the object shared from directive to controller.

  • splitArray : Sometimes the directive will be initialized before we get the data from the server. To split the array manually, call the following function from the controller. splitArray()
  • checkMedia : To check the media (Bootstrap media.). The following bootstrap media has been used. lg: "(min-width: 1200px)" - md: "(min-width: 992px)" - sm: "(min-width: 768px)"

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.