Giter Club home page Giter Club logo

Comments (3)

refactorthis avatar refactorthis commented on September 26, 2024

Is this related to the other question regarding css Sykes? You can use the built in angular classes to control this.

from xtform.

ReinierGielen avatar ReinierGielen commented on September 26, 2024

I don't think so.
I have a DIV that I give a xt-validation-tooltip="field1" field1 also has a xt-validation-tooltip.
When I test I can see that the class xt-error-container is added to the DIV but it is there alway's.
I also see the angular ng-invalid and ng-dirty classes on field1 as I manipulate the data.
But when I manipulate the data there is no change in classes on DIV. So how am I supposed to indicate that that an error has occurred ? By the way the tooltip is also not appearing.
I don't know if it is relevant, but field1 is inside DIV.

from xtform.

ReinierGielen avatar ReinierGielen commented on September 26, 2024

I discovered that the trigger for the tooltip is still on the validated field and NOT on the element with the tooltip. As the tooltip appreas on click I have to click the field to get a tool tip on something else.

And as I have been using this on hidden fields to indicate errors within groups of fields I did not see anything.

So it worked different that expected.

As there is only a change in the tooltip element when the tooltip is opened or closed this can not be used for attaching css for error colors

from xtform.

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.