Comments (4)
I am not sure that I understand this request. Do you have multiple fields with the same id? Is that why you need the extra parameter? It would probably be a more general purpose solution if we just broadcast the entire options object so you could stuff it with whatever you want and get it back in the end.
from ade.
The data I show through an ngRepeater come from a MySQL database table and I keep them updated via $http hooking into the "ADE-finish" broadcast message.
For every row there is of course an unique id albeit different fields and fieldnames. Instead of embedding fieldname in the id attribute of options object in ade-text directive I added the field (or if you prefer fieldname) attribute. I modify the done function accordingly.
I hope I made my point clearer. ;)
Thanks for your attention.
Cheers,
Luca
from ade.
It just occurred to me what you can do. The "id" option does not need to be a string. You can passthrough anything that you want in here, including an object. So, what you can do is pass {"id":"1234","field":"company"} into the id option and it will come to you as an object when you get the broadcast so you can get each field without string parsing.
Here is the directive that you would use: ade-text='{"className":"input-large","id":{"id":"1234","field":"abcd"}}'
from ade.
Good point. I concur. Thanks!
from ade.
Related Issues (20)
- Calendar should highlight today's date HOT 1
- Date filter needs popup with day of week HOT 4
- Date/Year directive needs to record the user's timezone with the timestamp HOT 3
- Date popups need adjusted triangles when on top HOT 1
- Icon popup should flip up top when it would be off the bottom of the page HOT 1
- Rich text should flip up top when it would be off bottom of page. HOT 1
- Use HTML pattern attribute to force number input
- Rename length directive to "duration" HOT 1
- Updating rating directive to use fontawesome instead of images HOT 1
- Need to test on iOS and make issues for any directives that need iOS changes HOT 1
- New value null/empty check option [FEATURE REQUEST] HOT 5
- Package theses directives for bower HOT 3
- Conflict beetween ADE date component and AngularUI date HOT 2
- Long tex link insertion doesn't work if http omitted.
- Any prebuilt.js files for ADE? Build is failing for latest pull HOT 3
- Is ADE/dist/build/ade.min.js minified? HOT 1
- Color Picker
- Location
- Stock Ticker
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 ade.