Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ---
  2. layout: page
  3. title: Todo List Plugin
  4. ---
  5. The todo list plugin provides simple functionality to the todo list component.
  6. ##### Usage
  7. This plugin can be activated as a jQuery plugin or using the data api.
  8. ###### Data API
  9. {: .text-bold }
  10. Activate the plugin by adding `data-widget="todo-list"` to the ul element. If you need to provide onCheck and onUncheck
  11. methods, please use the jQuery API.
  12. ###### jQuery
  13. {: .text-bold }
  14. The jQuery API provides more customizable options that allows the developer to handle checking and unchecking the todo
  15. list checkbox events.
  16. ```js
  17. $('#my-todo-list').TodoList({
  18. onCheck: function (checkbox) {
  19. // Do something when the checkbox is checked
  20. },
  21. onUnCheck: function (checkbox) {
  22. // Do something after the checkbox has been unchecked
  23. }
  24. })
  25. ```
  26. ##### Options
  27. {: .mt-4}
  28. |---
  29. | Name | Type | Default | Description
  30. |-|-|-|-
  31. |onCheck | Function | Anonymous Function | Handle checkbox onCheck event. The checkbox is passed as parameter to the
  32. function.
  33. |onUnCheck | Function | Anonymous Function | Handle checkbox onUnCheck event. The checkbox is passed as parameter to the
  34. function.
  35. |---
  36. {: .table .table-bordered .bg-light}