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

Checking based on inclusion in set #5

Open
jrgleason opened this issue Oct 21, 2014 · 4 comments
Open

Checking based on inclusion in set #5

jrgleason opened this issue Oct 21, 2014 · 4 comments

Comments

@jrgleason
Copy link

So say I have the following on my model...

var checkBoxItems = [
item1, item2
]

Now I want the checkbox to be checked if the checkbox line == an item in the list. I am also going to have to get the working with an "All" checkbox when the list is empty. This seems pretty complex in this implementation, however, I could just be reading the docs wrong.

@sebastianha
Copy link
Owner

I think I don't get the problem right, sorry. Perhaps you could explain it with a detailed example.

But in general each checkbox stands for itself and any further logic has to be implemented.

@jrgleason
Copy link
Author

I am working on a branch to augment but I will explain more when I get back
to an actual computer.
On Oct 21, 2014 10:34 AM, "Sebastian Hammerl" [email protected]
wrote:

I think I don't get the problem right, sorry. Perhaps you could explain it
with a detailed example.

But in general each checkbox stands for itself and any further logic has
to be implemented.


Reply to this email directly or view it on GitHub
#5 (comment)
.

@jrgleason
Copy link
Author

First of all thank you very much for your work, this has been a great springboard into my own endeavors. Here is my issue, from a model side, my model looks like

selectedItems = [{...}, {...}, {...}, ...]
items = [{...}, {...}, {...}, ...]

So if an item is in both arrays it is checked. If it is only in items it is left unchecked.

@sebastianha
Copy link
Owner

mmh, right now I have not spontanious idea how to implement this. I'll let you know if anything comes to my mind.

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