How to use the searchkit.ObjectState function in searchkit

To help you get started, we’ve selected a few searchkit 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 CRUKorg / cruk-searchkit / src / components / search / location / CRUKSearchkitLocationAccessor.jsx View on Github external
constructor(key, options){
    super(key, options.id)
    this.options = options

    this.state = new ObjectState({})
  }
github CRUKorg / cruk-searchkit / src / components / search / date / CRUKSearchkitDateRangeAccessor.jsx View on Github external
constructor(key, options){
    super(key, options.id);
    this.options = options;

    this.state = new ObjectState({});
  }
github CRUKorg / cruk-searchkit / lib / components / search / location / CRUKSearchkitLocationAccessor.js View on Github external
function CRUKSearchkitLocationAccessor(key, options) {
    _classCallCheck(this, CRUKSearchkitLocationAccessor);

    var _this = _possibleConstructorReturn(this, (CRUKSearchkitLocationAccessor.__proto__ || Object.getPrototypeOf(CRUKSearchkitLocationAccessor)).call(this, key, options.id));

    _this.options = options;

    _this.state = new _searchkit.ObjectState({});
    return _this;
  }
github CRUKorg / cruk-searchkit / lib / components / search / date / CRUKSearchkitDateRangeAccessor.js View on Github external
function CRUKSearchkitDateRangeAccessor(key, options) {
    _classCallCheck(this, CRUKSearchkitDateRangeAccessor);

    var _this = _possibleConstructorReturn(this, (CRUKSearchkitDateRangeAccessor.__proto__ || Object.getPrototypeOf(CRUKSearchkitDateRangeAccessor)).call(this, key, options.id));

    _this.options = options;

    _this.state = new _searchkit.ObjectState({});
    return _this;
  }