Botón x en el campo de búsqueda

Botón x en el campo de búsqueda

silenssilens Posts: 101Questions: 40Answers: 0

Hola, no tengo el botón x para borrar el campo de búsqueda, lo he visto en varios ejemplos pero no se lo que necesito.

Answers

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    Hola, deberías verlo cuando comiences a escribir en la caja. Prueba con este ejemplo aquí

    http://live.datatables.net/

  • silenssilens Posts: 101Questions: 40Answers: 0

    SI, en el ejemplo lo veo perfectamente pero no en mis tablas, ese botón lo vi por primera vez ayer en un ejemplo y me sorprendió. que podría comprobar

        <link href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" rel="stylesheet">
    
    
  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    I'm guessing it would be something to do with the CSS on your site.We're happy to take a look, but it would help, as per the forum rules, if you could link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • silenssilens Posts: 101Questions: 40Answers: 0
    edited June 2018
        <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
        <link href="https://cdn.datatables.net/1.10.16/css/dataTables.bootstrap.min.css" rel="stylesheet">
    
    

    Si quito este css si me sale el botón x

    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    

    Hay algún conflicto con este css y dataTables.boostrap.min.css

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    Hi @silens ,

    That's a Bootstrap issue, they decided to remove the 'x'. You can reinstate it in the CSS as in this example here. Solution came from this thread.

    Cheers,

    Colin

  • silenssilens Posts: 101Questions: 40Answers: 0

    Muchisimas Gracias. Muchas muchas gracias :)

  • silenssilens Posts: 101Questions: 40Answers: 0

    Es posible dar compatibilidad con firefox? Gracias

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    It should be browser independent - are you seeing problems?

This discussion has been closed.