Git Product home page Git Product logo

Comments (4)

baukh789 avatar baukh789 commented on June 16, 2024

感谢你的建议,我会尽快的进行评估,如果可行的话会提供相应的事件函数。

from gridmanager.

baukh789 avatar baukh789 commented on June 16, 2024

关于这个问题,可能不需要使用新的事件函数就可以解决。
有两个更新数据的方法refreshGrid setQuery, 在触发数据更新时,可通过传递回调函数来处理你所遇到的问题,如:

GM.setQuery('test', {}, false, (res) => {
     // 此时,渲染已经完成
     // res 是接渲染时使用的数据
})

from gridmanager.

canuran avatar canuran commented on June 16, 2024

Get!确实也是一种解决方法,只不过使用起来有些绕,需要先创建空白表格,再调用内置函数去加载数据,如果能在创建时就提供回调会更简单明了,仅个人建议~

from gridmanager.

baukh789 avatar baukh789 commented on June 16, 2024

建议在初始化时增加firstLoading: false参数, 这种模式将数据的渲染触发交给了使用者。使用者在合适的地方再调用渲染方法,如setQuery

from gridmanager.

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.