Git Product home page Git Product logo

Comments (7)

YousefED avatar YousefED commented on August 14, 2024

If you change the query the data should be refreshed. Could you provide a code snippet / jsfiddle so I can see what's going wrong?

from elasticui.

YousefED avatar YousefED commented on August 14, 2024

It seems you're injecting html via javascript (.appendTo). This does not play well with an angularjs application design. I suggest you reorganize your code into AngularJS controllers + directives

from elasticui.

arunneoz avatar arunneoz commented on August 14, 2024

This is just for the POC,thats why i did this quick and dirty. What is the directive and controller i should invoke in order to initiate the refresh from your plugin perspective. If you could include a small working example it would greatly help. Thanks again for quick response.

from elasticui.

YousefED avatar YousefED commented on August 14, 2024

You shouldn't have to invoke anything if you add eui-query to the page initially.

Set it to eui-query="yourQueryVariable"

Then when the range slider changes update yourQueryVariable, since ElasticUI "watches" this.

I strongly recommend cleaning up your code - then it should become clear quickly

from elasticui.

arunneoz avatar arunneoz commented on August 14, 2024

Got it Thanks

from elasticui.

arunneoz avatar arunneoz commented on August 14, 2024

Ok i was able to achieve the change by setting the querystring on the . But with one caveat, even though i set the queryString , i need to manually change the value in the textbox to initiate the change. i tried $('#divid').trigger('change'); But no effect.

from elasticui.

YousefED avatar YousefED commented on August 14, 2024

If you just change the range that should be enough (no need to force-change the querystring if it hasn't changed.

from elasticui.

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.