Skip to content
Snippets Groups Projects
Commit 1a0b3b07 authored by permcu's avatar permcu
Browse files

Document CalendarEventDialog's events-prop

parent f59693ca
No related branches found
No related tags found
No related merge requests found
...@@ -169,7 +169,34 @@ export default { ...@@ -169,7 +169,34 @@ export default {
}; };
}, },
props: { props: {
// TODO /**
* An object with event-name and event-description key-value-pairs.
*
* @example {
* example-event-name:
* {
* // Required
* createMutation: exampleEventCreateMutation,
* updateMutation: exampleEventUpdateMutation,
* fields: {
* example-field-name: {
* // required
* default: default-value,
* cols: 6, // number of columns in dialog
* // optional
* textKey: "example-key", // key for field-name lookup
* hide: true, // Hide this field in dialog
* filter: false, // Filter this result from object send to server
* },
* ...
* },
* // Optional
* textKey: "example-key", // key for event-name lookup
* filter: (object) => { Do something with object before sending to server }
* },
* ...
* }
*/
events: { events: {
type: Object, type: Object,
required: false, required: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment