Coder Social home page Coder Social logo

Hidden Column about vue3-table-lite HOT 2 CLOSED

linmasahiro avatar linmasahiro commented on August 19, 2024
Hidden Column

from vue3-table-lite.

Comments (2)

linmasahiro avatar linmasahiro commented on August 19, 2024 1

Hey @linmasahiro is it possible to have a hidden column? A column that is not visible in the table but whose data can be used in a v-slot for example. This will prevent the need for hitting the server api again just to get details for example which I want in a hover over my summary field. Details is not shown in the Table columns but that data should be available to be used.

Yes, and very easy, don't add to table.columns only.
table.columns are always be show, and table.rows are records nothing to do with display.

  <table-lite
    :is-static-mode="true"
    ...
  >
    <template v-slot:summary="data">
      <span>{{ data.value.aaa }}</span>
    </template>
  </table-lite>

......

    // This is your data from API
    const data = reactive([]);
    for (let i = 0; i < 126; i++) {
      data.push({
        id: i,
        summary: "TEST" + i,
        aaa: "Hidden" + i
      });
    }

    // Table config
    const table = reactive({
      columns: [
        {
          label: "ID",
          field: "id",
          width: "3%",
          sortable: true,
          isKey: true,
        },
        {
          label: "Summary",
          field: "summary",
          width: "10%",
          sortable: true,
        },
      ],
      ......
    });

......

from vue3-table-lite.

nosizejosh avatar nosizejosh commented on August 19, 2024

Great, data was all there, no extra actions needed. Thanks!

from vue3-table-lite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.