Coder Social home page Coder Social logo

Comments (6)

linmasahiro avatar linmasahiro commented on August 19, 2024

Hi, @RaskaTheFurry
If you want to change style, you can ref here or #25
You will be not change any code and implement it.

Right position headers of 2nd column:

::v-deep(.vtl-table .vtl-thead .vtl-thead-th:nth-child(2)) {
  text-align: right;
}

from vue3-table-lite.

RaskaTheFurry avatar RaskaTheFurry commented on August 19, 2024

Hello,
sorry for late answer

it would be great if we could use something like "Class and Style Bindings" even for headers instead of just using <style>. This would allow us to style even headers using conditions. A thing that is only possible with slots right now and only to data, if I undestand this component correctly.

from vue3-table-lite.

linmasahiro avatar linmasahiro commented on August 19, 2024

Hi, @RaskaTheFurry
Yes, I guess you are right. It use hard if have not [v-deep] knowledge.
I added new options to set header/column class or style(in-line), here has example. Hope helpful you.

        {
          label: "ID",
          headerClasses: ["bg-gold", "color-red"],
          columnClasses: ["bg-gray"],
          headerStyles: { background: "gray" },
          columnStyles: { background: "gold" },
          field: "id",
          width: "3%",
          sortable: true,
          isKey: true,
        },

Document
Example

from vue3-table-lite.

teguhsatria892 avatar teguhsatria892 commented on August 19, 2024

better you give more props to set the position, like center, left or right, not only for header, but for column too,

from vue3-table-lite.

linmasahiro avatar linmasahiro commented on August 19, 2024

better you give more props to set the position, like center, left or right, not only for header, but for column too,

You can use 「columnClasses」or 「columnStyles」 to set the position or other.

from vue3-table-lite.

linmasahiro avatar linmasahiro commented on August 19, 2024

Hi, I closed this issue. If any questions, reopen it. thx.

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.