Giter Club home page Giter Club logo

ng2-table's Introduction

ng2-table with edition options

Fork of ng2-table including a config object to render edition buttons.


Documentation

Only included the aditional options of this fork. For more information head to the original docs

Inputs (Properties)

-editConfig (?any) - configuration of the edition cell

  • title (?string) - title of the header for the edition column
  • className (?string|Array<string>) - additional css classes that should be added to the edition column header
  • edit (?any) - configuration object for the edit button
    • title (?string) - content of the edit button
    • icon (?string) - css class for a icon inside the button
    • className (?string|Array<string>) - additional css classes that should be added to the edit button
  • delete (?any) - configuration object for the delete button
    • title (?string) - content of the delete button
    • icon (?string) - css class for a icon inside the button
    • className (?string|Array<string>) - additional css classes that should be added to the delete button
  • select (?any) - configuration object for the selection checkbox
    • name (string) - html name property for the checkboxes
    • keyProperty (string) - property of the row object that uniquely identifies it
    • className (?string|Array<string>) - additional css classes that should be added to the checkbox

Outputs (Events)

  • tableChanged: data change event handler
  • cellClicked: onclick event handler
  • editClicked: edit button event handler. It does not handles the edition, just outputs the row on it which was triggered.
  • deleteClicked: delete button event handler. It does not handles the deletion, just outputs the row on it which was triggered
  • selectChange: row selection change handler. Outputs the row and a a boolean telling if its selected or not.
  • sortChanged: column sorting change handler. Outputs the changed column
  • filterChanged: column filter change handler. Outputs the changed column

Troubleshooting

Please follow this guidelines when reporting bugs and feature requests:

  1. Use GitHub Issues board to report bugs and feature requests (not our email address)
  2. Please always write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.

Thanks for understanding!

License

The MIT License (see the LICENSE file for the full text)

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.