Giter VIP home page Giter VIP logo

Comments (7)

ManUtopiK avatar ManUtopiK commented on August 27, 2024 1

Perfect! That works well.
Thanks a lot for your work!

from tailor.

ManUtopiK avatar ManUtopiK commented on August 27, 2024 1

No, sorry, I made a mistake.
Tailor is not available as a global scope, or I missing something...

from tailor.

andrew-worsfold avatar andrew-worsfold commented on August 27, 2024

Fair point. SPA/AJAX sites weren't the focus during development, but there's no reason not to support them. Were you anticipating a separate function for each element type?

What is the best practice when it comes to functions of this type? Presumably they shouldn't be global scope, but accessible through the Tailor object..

from tailor.

ManUtopiK avatar ManUtopiK commented on August 27, 2024

Were you anticipating a separate function for each element type?

No. I took all functions for reload all elements.

Maybe it will be accessible through something like Tailor.initialize(). But there is no Tailor object in front...

from tailor.

andrew-worsfold avatar andrew-worsfold commented on August 27, 2024

I've updated the frontend scripts so that there is now a Tailor object. You can use the initElements function to initialize all default elements. Check out the latest commit for Tailor 1.5.5.

Does that work for you?

from tailor.

andrew-worsfold avatar andrew-worsfold commented on August 27, 2024

You're right. A fix for this will be added in the next release of Tailor.

from tailor.

ManUtopiK avatar ManUtopiK commented on August 27, 2024

It's work well this time. I got it with window.Tailor.initElements();.
Thanks.

from tailor.

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.