const { gridView, dataProvider } = RealGrid.createGrid('realgrid', {
  display: {
    emptyMessage: 'No data to display.'
  }
}, {
  fields: []
});

window.gridView = gridView;
window.dataProvider = dataProvider;

const customStyles = `
.rg-root {
  font-family: "Malgun Gothic", "Malgun Gothic", AppleSDGothicNeo-Light, sans-serif;
  font-size: 12px;
  color: #000000;
}

.rg-root .rg-table,
.rg-root .rg-table tr,
.rg-root .rg-table td {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  border-spacing: 0 !important;
  border-collapse: separate !important;
  box-sizing: border-box !important;
  line-height: 1.5em;
}

.rg-empty-grid {
  display: table;
  padding: 10%;
  background: #ffffff;
  color: #0000ff;
  font-size: 32px;
  text-align: center;
}
`;

const styleEl = document.createElement('style');
styleEl.textContent = customStyles;
document.head.appendChild(styleEl);