Code Monkey home page Code Monkey logo

Comments (4)

rmingas avatar rmingas commented on August 11, 2024

Any suggestions or is it definitely not possible?

from editablegrid-mysql-example.

jybeaujean avatar jybeaujean commented on August 11, 2024

I think it's possible because there is no limit to the cell editor system.
But without code or console log or error message, I can't help you.

from editablegrid-mysql-example.

rmingas avatar rmingas commented on August 11, 2024

the input mask plugin works fine on in the add record window using this In of index.php:
.....

        <div class="row">
            <input type="text" id="chassi" name="chassi" placeholder="chassi" data-inputmask="'mask': '#################', 'placeholder': '.'" />
        ........
    </div>
    <script type="text/javascript">
        $(document).ready(function(){
            $(":input").inputmask();
        });
    </script>

What I can't find out is how to make it work in the grid

from editablegrid-mysql-example.

jybeaujean avatar jybeaujean commented on August 11, 2024

You must create a dedicated editor. Check this: https://github.com/webismymind/editablegrid/blob/master/editablegrid_editors.js.

We do a similar thing in DateCellEditor. You have to create InputMaskEditor and bind inputMask in displayEditor()

Something like that :

InputMaskEditor.prototype.displayEditor = function(element, htmlInput) 
{
    // call base method
    TextCellEditor.prototype.displayEditor.call(this, element, htmlInput);
    $(htmlInput).inputmask("99-9999999");
};

from editablegrid-mysql-example.

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.