Skip to content

Instantly share code, notes, and snippets.

@yokotaso
Last active February 7, 2019 11:07
Show Gist options
  • Save yokotaso/58f8a67649439b108066b87fd873d79f to your computer and use it in GitHub Desktop.
Save yokotaso/58f8a67649439b108066b87fd873d79f to your computer and use it in GitHub Desktop.
kintone customize with es6
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