Giter Club home page Giter Club logo

Comments (12)

wmartins avatar wmartins commented on May 18, 2024

It would be a great plugin. The style could be like the 'optgroup_columns' plugin. What do you think about it?

from selectize.js.

brianreavis avatar brianreavis commented on May 18, 2024

Agreed. The basic needs as I see it are:

  • Override default "option" render function to build the child columns for you.
  • Include the CSS to turn .selectize-dropdown-contents into a table layout. display: table; table-layout: fixed; ...
  • Build a fixed table header utilizing "dropdown_header".

The plugin options could be something like...

"dropdown_table": {
    columns: [
        {title: "Product Name", field: "name"},
        {title: "Quantity", field: "name", width: "40px"},
        {title: "Price", field: "price", width: "40px"},
    ],
    render: {
         cell: function(field, data) {
             // (optional) this function would allow people to control
             // how the data within each cell is rendered
         }
    }
}

What do you guys think? @wmartins Is this something you'd want to tackle?

from selectize.js.

wmartins avatar wmartins commented on May 18, 2024

@brianreavis it seems good to me. What do you think about the search method? For example, if I have a table with 'phone' and 'brand', it would be nice to search using the brand (or maybe it can be configured to search by multiple fields).

from selectize.js.

brianreavis avatar brianreavis commented on May 18, 2024

I don't see any need for that, as this is already possible with the searchField option:

searchField: ['phone', 'brand']

from selectize.js.

wmartins avatar wmartins commented on May 18, 2024

Oh, sorry, I forgot that!
Now it seems perfect to me!

from selectize.js.

magixsource avatar magixsource commented on May 18, 2024

@wmartins where is the plugin ?

from selectize.js.

wmartins avatar wmartins commented on May 18, 2024

I could not work on it yet @magixsource! :(

from selectize.js.

magixsource avatar magixsource commented on May 18, 2024

@wmartins : P Ok,i write a plugin for this , it's seen like below :

yo,It's a bit ugly,but it work well.

from selectize.js.

Sevin777 avatar Sevin777 commented on May 18, 2024

I'm interested in this plugin as well

from selectize.js.

SenerDemiral avatar SenerDemiral commented on May 18, 2024

I'm also interested "dropdown_table" plugin.

from selectize.js.

sameemsalik avatar sameemsalik commented on May 18, 2024

Hi guys,

This would be an awesome plugin. Is it available now?

from selectize.js.

risadams avatar risadams commented on May 18, 2024

closing stale issues older than one year.
If this issue was closed in error please message the maintainers.
All issues must include a proper title, description, and examples.

from selectize.js.

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.