Last active
February 7, 2019 11:07
-
-
Save yokotaso/58f8a67649439b108066b87fd873d79f to your computer and use it in GitHub Desktop.
kintone customize with es6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jQuery from "jquery"; | |
(() => { | |
const events = [ | |
"app.record.create.show", | |
"app.record.edit.show", | |
]; | |
kintone.events.on(events, (ev) => { | |
const el = kintone.app.record.getHeaderMenuSpaceElement(); | |
const hello = "hello"; | |
const world = "world!"; | |
const message = { | |
hello, | |
world, | |
}; | |
const copied = Object.assign({}, message); | |
jQuery(el).append(`<div>${copied.hello} ${copied.world}!</div>`); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment