Code Monkey home page Code Monkey logo

angular-st-pagination's People

Contributors

tilmanschweitzer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

angular-st-pagination's Issues

Multiple directives [stPagination, stPagination] asking for new/isolated scope on:

I keep getting

angular.js:14794 Error: [$compile:multidir] Multiple directives [stPagination, stPagination] asking for new/isolated scope on: <st-pagination collection="appointments">
http://errors.angularjs.org/1.6.7/$compile/multidir?p0=stPagination&p1=&p2=stPagination&p3=&p4=new%2Fisolated%20scope&p5=%3Cst-pagination%20collection%3D%22appointments%22%3E
    at angular.js:116
    at assertNoDuplicate (angular.js:10386)
    at applyDirectivesToNode (angular.js:9574)
    at angular.js:10302
    at processQueue (angular.js:17145)
    at angular.js:17193
    at Scope.$digest (angular.js:18331)
    at Scope.$apply (angular.js:18628)
    at done (angular.js:12619)
    at completeRequest (angular.js:12863)

with

<st-pagination collection="appointments"></st-pagination>

However,

<st-pagination-limit collection="appointments" limits="[5,10,20,50,100]" mid-range="2" edge-range="2" css-config="bootstrap3"></st-pagination-limit>

works fine.

Configurable HTML-Structure for Bootstrap 2.x compatibility

  • HTML-Structure should be configurable (at least for st-pagination directive)
  • Provide framework independent descriptions (e.g. LIST_STRUCTURE, LIST_STRUCUTRE_WITH_DIV_WRAP) and add framework specific aliases
  • Bootstrap 3.x should stay the default
  • Configuration per directive MUST be possible
  • Global configuration SHOULD be possible

Update README

Add following information to the Readme.

  • Version
  • Basis usage
  • Link to demo and documentation
  • Build and contribution guide

replace css config mechanism with configurable templates

  • base templates and aliases for css frameworks similar to current mechanism
  • set custom templates (pseudo templates with marker attributes?)

Proposal

// predefined
stPaginationProvider.setTemplateConfig({templateKey: 'bootstrap2'});
// custom
stPaginationProvider.setTemplateConfig({templateUrl: 'x/y.html'});
// template
stPaginationProvider.setTemplateConfig({template: '<div></div>'});

css config object with css classes

  1. unify the css configuration with a config object.
  2. keep string for compatibility and as shorthand.

Parameters

  • divWrapped: boolean (default: false)
  • selectedClass: string (default: 'active')
  • disabledClass: string (default: 'disabled')

shortcuts

'list' / 'bootstrap3' - {}
'divWrappedList' / 'bootstrap2' - {divWrapped: true}
'zurbFoundation' - {selectedClass: 'current', disabledClass: 'unavailable'}

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.