lluchmk-ng2-table
v1.2.1
Published
Fork of ng2-table including some edition options
Downloads
2
Readme
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 columnclassName
(?string|Array<string>
) - additional css classes that should be added to the edition column headeredit
(?any
) - configuration object for the edit buttontitle
(?string
) - content of the edit buttonicon
(?string
) - css class for a icon inside the buttonclassName
(?string|Array<string>
) - additional css classes that should be added to the edit button
delete
(?any
) - configuration object for the delete buttontitle
(?string
) - content of the delete buttonicon
(?string
) - css class for a icon inside the buttonclassName
(?string|Array<string>
) - additional css classes that should be added to the delete button
select
(?any
) - configuration object for the selection checkboxname
(string
) - html name property for the checkboxeskeyProperty
(string
) - property of the row object that uniquely identifies itclassName
(?string|Array<string>
) - additional css classes that should be added to the checkbox
Outputs (Events)
tableChanged
: data change event handlercellClicked
: onclick event handlereditClicked
: 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 triggeredselectChange
: 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 columnfilterChanged
: column filter change handler. Outputs the changed column
Troubleshooting
Please follow this guidelines when reporting bugs and feature requests:
- Use GitHub Issues board to report bugs and feature requests (not our email address)
- 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)