1.0.0 • Published 4 years ago
angular-mergely v1.0.0
angular-mergely
An extended angular wrapper for mergely.
Usage
The module of interest is termed mergely, so one must require that from
angular in order to make use of this package.
Then one can make use of the mergelyEditor element directive.
The following attributes can be set on the mergelyEditor directive:
originalFilesA file name to data map of files in the original project.otherFilesA file name to data map of files in the new project.acceptCallback({filename: data, ...})A function to be called upon the completion of the merge with the amended data.cancelCallback()A function to be called upon the cancelation of the merge.acceptButtonClassA set of classes to be added to the accept button.cancelButtonClassA set of classes to be added to the cancel button.settingsSettings to pass to mergely, see the mergely documentation for details.
The following css classes are of importance (in addition to those provided by mergely itself):
merge-barThe bars above and below the mergely editor.merge-top-barThe bar above the mergely editor.merge-bottom-barThe bar below the mergely editor.merge-btnApplied to the "Merge" and "Cancel" button elements.merge-btn-acceptApplied to the "Merge" button.merge-btn-cancelApplied to the "Cancel" button.merge-btn-containerA container encapsulating the aforementioned buttons.
1.0.0
4 years ago