idlesign / django-xross Goto Github PK
View Code? Open in Web Editor NEWReusable application for Django nicely bridging client and server sides.
Home Page: https://github.com/idlesign/django-xross
License: BSD 3-Clause "New" or "Revised" License
Reusable application for Django nicely bridging client and server sides.
Home Page: https://github.com/idlesign/django-xross
License: BSD 3-Clause "New" or "Revised" License
document.ready
support is removed
See transition guide: https://jquery.com/upgrade-guide/3.0/#event
In the documentation @xross_view
is added to a function based view.
@xross_view(list_news) # Decorate your view - instruct xross to use `list_news` when needed.
def index_page(request):
...
My view is actually very complex and need xross
just for two tiny elements (bookmark and star). I suppose I can render the rest of the items regularly, leaving the two buttons blank and let xross
fill the content. However, how do I add @xross_view
to my generic view?
class MyView(generic.DetailView):
...
@idlesign You mentioned in another post that
django-xross is a bit old and it's JS needs a refresher, but it works for me.
I came across intercooler.js
today which seems to be doing the same thing as the JS part of django-xross
is doing. Is it possible for you to make use of intercooler.js
if it is a more mature and well-supported project?
Disclaimer: I am bad at JS and is not at a position to judge the quality of intercooler.js
and/or the JS part of django-xross
.
Edit: There is an existing project called django-intercoolerjs, which is a simple wrapper that adds the js. django-xross
has doing a lot more than it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.