Comments (14)
I'm afraid I don't understand, what do you mean by "object of key values"?
Could you provide a sample of the API you would like to have?
from form.
{
"id":"target_id",
"type":"field",
"action":"update",
"target_value":{
"required":true,
"value": "$other_date_field",
"minimumDate":"$other_date"
},
"condition":"$conditional_value == 2"
}
from form.
Also, it would be neat if it supported the $
delimiter to fetch values from foreign fields
from form.
Looks useful :)
from form.
But calling it target_value no longer makes sense.
from form.
Definetly
from form.
I guess you could do
{
"id":"target_id",
"type":"field",
"action":"update",
"required":true,
"value": "$other_date_field",
"minimum_date":"$other_date"
"condition":"$conditional_value == 2"
}
from form.
in that example: if condition is fulfilled then the target_id field will set: a value, a minimun date and make the field required, right?
so the semantic of target_value
would be like All the actions that happen when the condition is fulfilled
from form.
@fespinoza something like that yes.
from form.
I prefer the syntax that @zenangst posted, about the field name, can be changed for something like target_transformations
or something
from form.
A target
is an element that triggers an action over a field
or a section
.
In that idea I think we could make target
inherit from a field
, so it has all the elements of a field
but with the additional powers.
from form.
@NSElvis HYPFormTarget already has a property called value
.
from form.
@zenangst: naming would just be a detail I guess, everything else should work.
from form.
No new features for now, let's reconsider after the bug fixes have being fixed.
from form.
Related Issues (20)
- Feature Request: Consider adding standard UITextView field type HOT 1
- Feature Proposal: Show validation error message beside form field title HOT 9
- Feature Request: Allow custom input validator HOT 8
- How does one subscribe a custom cell's FORMBaseFieldDelegate to the conforming class FORMDataSource? HOT 1
- Use case difference between Sections and Fields HOT 5
- Dynamic Buttons HOT 3
- [Question] How does your GroupHeaders keep track of their collapsed state upon dequeue? HOT 8
- How to create form templates which creates JSON? HOT 11
- Do the Form support multiple checkboxes? HOT 5
- Add tests for Hidden field order #571
- How do I choose id for each element? HOT 1
- NSInternalInconsistency exception when attempting to process FORMTarget HOT 1
- Swift Syntax Error HOT 1
- FORMFieldValuesTableViewController navigation bar title color change
- Segment get unselected when combined with Show target HOT 2
- Show/Hide group HOT 7
- Memory leaks in demo project (and so in projects using the lib)
- Potential memory leaks in Model layer
- View transition bug when keyboard show, only in iOS 11 HOT 7
- Multiselect support HOT 5
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 form.