How to use the admin-bro.BaseProperty function in admin-bro

To help you get started, we’ve selected a few admin-bro examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SoftwareBrothers / admin-bro-dev / examples / rest / postcode.js View on Github external
constructor(params) {
    super(params)
    this.totalCount = 0
    this._properties = [
      new BaseProperty({ path: 'name', type: 'string', isSortable: false }),
      new BaseProperty({ path: 'id', type: 'string', isId: true, isSortable: false }),
      new BaseProperty({ path: 'lat', type: 'string', isSortable: false }),
      new BaseProperty({ path: 'lng', type: 'string', isSortable: false }),
    ]
  }