Giter Club home page Giter Club logo

Comments (6)

pgoldweic avatar pgoldweic commented on August 30, 2024

This would be great to have. Thanks!

from sematable.

pgoldweic avatar pgoldweic commented on August 30, 2024

Is this supposed to be already in place? I've tried using it by adding a 'title' property to my headers array, but it does not seem to have an effect. (note: I bumped version to 1.4.1)

from sematable.

amir-hadzic avatar amir-hadzic commented on August 30, 2024

It should be working, you can test it out in storybook (npm run storybook). Can you post your column definitions?

from sematable.

amir-hadzic avatar amir-hadzic commented on August 30, 2024

I did notice that bootstrap tooltip is used if it's defined on non-sortable column, and non-bootstrap tooltip is used if defined on sortable column. I'll fix that.

from sematable.

pgoldweic avatar pgoldweic commented on August 30, 2024

Oh, I see. Glad you noticed. Thanks!

from sematable.

pgoldweic avatar pgoldweic commented on August 30, 2024

Thanks again for working on this. However, I have to say that it is still not working for me (I bumped version to 1.4.2). I may be missing something here, but what is it? I've added a 'title' property to every header, as follows:

const headers = {
	field1: { sortKey: "student", name: "student", searchable: true, title: "Student's Id"},
            field2: {sortKey:"name",name:"name",searchable: true: title: "Student's name"}
            }

Then I render the table in the following way:

<Table condensed striped bordered hover responsive>
    <thead>
    <tr>
        <SortableHeader className="narrowfield" {...student} />
        <SortableHeader className="narrowfield" {...name} />
    </tr>
    </thead>
<tbody>{rows}</tbody>

What could be wrong? One more detail: the hand cursor shows up when I roll over the headers above, although no tooltip is shown.

Or, what about a bootstrap 3 vs bootstrap 4 issue? (I've now switched over to Bootstrap 3 -I was originally using Bootstrap 4), and I know there are some differences between the 2, including some class names, etc.). Note: the Table component used above is the react-bootstrap Table, not the one provided with sematable.

from sematable.

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.