A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/issues/5263 below:

Adding a stickyColumn causes an error. · Issue #5263 · bootstrap-vue/bootstrap-vue · GitHub

Describe the bug
      TS2322: Type '{ key: string; label: string; sortable: true; stickyColumn: boolean; class: string; }' is not assignable to type 'string | ({ key: string; } & BvTableField)'.
  Object literal may only specify known properties, and 'stickyColumn' does not exist in type '{ key: string; } & BvTableField'.
Steps to reproduce the bug
<template>
  <div>
    <b-table :fields="fields" />
  </div>
</template>

<script lang="ts">
import Vue from 'vue';
import {
  BvTableFieldArray,
} from 'bootstrap-vue/esm/components/table';

type DataType = {
  fields: BvTableFieldArray
}

export default Vue.extend({
  data(): DataType {
    return {
      fields: [{ key: 'id', stickyColumn: true }]
    };
  }
});
</script>
Expected behavior

The stickyColumn described in the manual does not exist.
Is the following code missing?

// `bootstrap-vue/esm/components/table/index.d.ts`

export interface BvTableField {
  :
  stickyColumn?: boolean
}
Versions

Libraries:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4