Giter VIP home page Giter VIP logo

Comments (5)

monika-digicorp avatar monika-digicorp commented on May 30, 2024 1

@terrancesnyder In Propeller V1.2, we have enhanced the components by developing jQuery Plugins to fetch the data dynamically. For more details, please refer: https://github.com/digicorp/propeller/releases/tag/v1.2.0

from propeller.

piyush-digicorp avatar piyush-digicorp commented on May 30, 2024

Hello,
We are working towards creating js API for Propeller components.

from propeller.

terrancesnyder avatar terrancesnyder commented on May 30, 2024

A simple solution, work around could be rename all your document ready calls to a psuedo event.

$(document).on('page.load', function() {
....
});

This would allow people to call a event if they needed to reload.

$( document ).trigger( "page.load" );

However this is sub-optimal... Maybe checkout UI Kit or other material design sites for how they work around this.

For now, I've modified my local to do the above so that Aurelia can be used.

from propeller.

StarpTech avatar StarpTech commented on May 30, 2024

@terrancesnyder thanks for the response. I already did it but this is ugly because you can't isolate a component from their depedencies e.g a form component in aurelia or riotjs should be responsible for bootstraping their elements not a global routine and without much copy & paste or modifying the library its not possible.

from propeller.

terrancesnyder avatar terrancesnyder commented on May 30, 2024

@StarpTech thanks, i needed something so just being pragmatic and adding this to gulp until that better solution is done. i'll follow this ticket if other ways come out.

    const patchPropellerForDomLoad = gulp.src(`${source}/dist/js/propeller*.js`)
        .pipe(changedInPlace({ firstPass: true }))
        .pipe(replace('$(document).ready(function () {', "$(document).on('page.load', function() {"))
        .pipe(gulp.dest(`${source}/dist/js`));

from propeller.

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.