Skip to content
Snippets Groups Projects
Commit 0a07e5fd authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Added some documentation.

parent c92fc9bf
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ Set the app specific values in your javascript file. This is what I've used for
OCCategories.app = 'contacts';
OCCategories.changed = Contacts.UI.Card.categoriesChanged;
If OCCategories.changed point is set that function will be called each time the categories have been changed
If OCCategories.changed is set that function will be called each time the categories have been changed
in the editor (add/delete/rescan) to allow the app to update the UI accordingly. The only argument to the function
is an array of the updated categories e.g.:
......@@ -25,4 +25,9 @@ OCCategories.changed = function(categories) {
for(var category in categories) {
console.log(categories[category]);
}
}
\ No newline at end of file
}
To show the categories editor call:
OCCategories.edit()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment