Comments (9)
I could see some kind of transformation layer being helpful. It seems like the idea here is to be as javascript-less as possible though. Making it an option, though, could be nice.
from way.js.
Why not just have a way-filter DOM tag? Surely that would be javascript-less?
from way.js.
+1, will investigate that. Again, PR are welcome!
On 21 August 2014 22:04, Micheal Harker [email protected] wrote:
Why not just have a way-filter DOM tag? Surely that would be
javascript-less?—
Reply to this email directly or view it on GitHub
#21 (comment).
from way.js.
I have just submitted a pull request, @gwendall - hope to see it merged :)
from way.js.
I am fine with the 'way-filter' DOM tag. However, the actual 'format' function should be externalized, and let the developer define.
Suppose I have my own format function.
function prependUnderscore(str) {
if (!str) return '';
return '_' + str;
}
Then it would look like
way-filter='prependUnderscore'
from way.js.
I have added the possibility of custom filters to my pull request. My implementation is as such:
function filtername(str) {
return "string to return";
}
from way.js.
Right on. Pushed what seems to be a correct implementation. Check it out. https://github.com/gwendall/way.js#filters
from way.js.
Pull requests welcome for more cool pre-built filters!
https://github.com/gwendall/way.js/blob/master/way.js#L224
from way.js.
Btw, will rename it to "way-transform" tomm to keep the "way-filter" as an attribute to filter repeats.
Sent from my iPhone
On 21 août 2014, at 23:21, Amec Niv [email protected] wrote:
Closed #21.
—
Reply to this email directly or view it on GitHub.
from way.js.
Related Issues (20)
- Issues using way.js with jquery validate plugin
- nojquery几个错误的地方 HOT 1
- Can I binding data to a.href or other attribute HOT 1
- Nested repeats support HOT 1
- the repeats are not suitable for table HOT 5
- way-data save multiple options of select HOT 1
- ...
- There seems to be a mistake, to help look at the
- just a question: what will be printed under this situation
- another question.do we have any method to monitor when the dom-render is ready for any way repeat fragement.
- How do I use it in requirejs
- Chinese documents(中文文档) HOT 3
- can not save the element <input text="number"> HOT 1
- Can not monitor changes to selection labels?
- The import of requirejs is not effective, how can we support requirejs?
- way-repeat=
- Nested repeats are not working HOT 1
- way-repeat。。。
- what is the expected behavior in sync for multiple instances of the same page ?
- focusing breaks data restoration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from way.js.