Giter VIP home page Giter VIP logo

Comments (9)

unclead avatar unclead commented on June 15, 2024

Currently only ajaxValidation works because widget uses Html helper for rendering inputs. ClientValidation works when you use ActiveField for rendering. We can extend widgets's logic for this case but it will works only when you work with AR model.

from yii2-multiple-input.

michaelnguyen2021 avatar michaelnguyen2021 commented on June 15, 2024

okay, I am using Tabular Input ( https://github.com/unclead/yii2-multiple-input/blob/master/docs/tabular_input.md) . I hope it is possible to do client-validation.

Great works on the plugin.

Thanks

from yii2-multiple-input.

unclead avatar unclead commented on June 15, 2024

I think i we can add new property enableActiveFieldRendering or something similar with false value by default for BC. If this property is true widget will use $form->field for rendering inputs. I'm not sure about name of property and i need your opinion.

from yii2-multiple-input.

michaelnguyen2021 avatar michaelnguyen2021 commented on June 15, 2024

Hi unclead,

can we check for "enableClientValidation" value instead of introducing new property ?

from yii2-multiple-input.

unclead avatar unclead commented on June 15, 2024

Yes, I think we can use enableClientValidation from ActiveForm. Unfortanetly i dont have free time to implement this feature now, too busy on main work

from yii2-multiple-input.

michaelnguyen2021 avatar michaelnguyen2021 commented on June 15, 2024

no problem man, no rush. I understand.

from yii2-multiple-input.

unclead avatar unclead commented on June 15, 2024

Closed via d08fe29

from yii2-multiple-input.

unclead avatar unclead commented on June 15, 2024

After performing some test i realized that current implementation does not cover all cases and also current functionality is broken. I moved the feature to the new branch and reverted the master branch to a stable state

from yii2-multiple-input.

unclead avatar unclead commented on June 15, 2024

resolved via 156e38f

from yii2-multiple-input.

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.