<hot-table>

Dynamically generated context menu demo

Simple Example

Click the button to generate dynamically different context menu commands. Generate for or .

Code


<dom-bind>
  <template>
    <hot-table id="example" width="570" height="280" datarows="{{ people }}" row-headers context-menu="{{ contextMenu }}">
      <hot-column width="125" value="name" header="Full Name"></hot-column>
      <hot-column width="125" value="address" header="Address"></hot-column>
      <hot-column width="125" value="registered" header="Registered" type="date"></hot-column>
      <hot-column width="125" value="balance" header="Balance" type="numeric">
        <template data-hot-role="renderer" is="dom-template">
          <bold-renderer value="{{ value }}"></bold-renderer>
        </template>
      </hot-column>
    </hot-table>
  </template>
</dom-bind>