Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Label Feature #584

Closed
rclai opened this issue Jan 2, 2015 · 1 comment
Closed

Dynamic Label Feature #584

rclai opened this issue Jan 2, 2015 · 1 comment

Comments

@rclai
Copy link

rclai commented Jan 2, 2015

Sort of like autoValue where you can do this.field('someOtherField'). Example:

{
    type: String,
    label: function () {
         if (this.field('someOtherField').value === 'someValue')) {
                return 'My Custom Label';
         }
         return 'My Default Label';
    }
}

Further, if this field was within an array or deeply embedded in arrays it would be useful to reference

this.field('someArr.$.someField').value

Perhaps this could be connected to the reactivity needed in #483.

@aldeed
Copy link
Collaborator

aldeed commented Jan 3, 2015

This could probably be added eventually, but it would actually be a change in the SimpleSchema package. Can you post this to that repo instead?

@aldeed aldeed closed this as completed Jan 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants