Memento JavaScript Library: Difference between revisions
Jump to navigation
Jump to search
Tag: Reverted |
Tag: Reverted |
||
Line 27: | Line 27: | ||
: The entryDefault(mode) method allows setting default values for entries within triggers triggered by the "Creating an entry" or "Updating an entry" events. The mode parameter defines when these default values will be applied. The mode parameter can take the following values: | : The entryDefault(mode) method allows setting default values for entries within triggers triggered by the "Creating an entry" or "Updating an entry" events. The mode parameter defines when these default values will be applied. The mode parameter can take the following values: | ||
'edit': Applied during the editing of an existing entry. | :::* 'edit': Applied during the editing of an existing entry. | ||
'copy': Applied during the creation of an entry by copying an existing entry. | :::* 'copy': Applied during the creation of an entry by copying an existing entry. | ||
'prefill': Applied during the creation of an entry using a template. | :::* 'prefill': Applied during the creation of an entry using a template. | ||
'create': Applied during the creation of an empty entry. (Equivalent to using entryDefault() without arguments). | :::* 'create': Applied during the creation of an empty entry. (Equivalent to using entryDefault() without arguments). | ||
:; Result: [[#Object DefaultEntry|'''''DefaultEntry''''' object]] | :; Result: [[#Object DefaultEntry|'''''DefaultEntry''''' object]] |