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

[JS] New angular directive multiple-input #1200

Closed
TheMaaarc opened this issue Feb 7, 2017 · 0 comments
Closed

[JS] New angular directive multiple-input #1200

TheMaaarc opened this issue Feb 7, 2017 · 0 comments
Assignees
Milestone

Comments

@TheMaaarc
Copy link
Member

TheMaaarc commented Feb 7, 2017

['var' => 'col', 'label' => 'Sizes', 'type' => 'zaa-multiple-input', 'options' => [
    [
        'type' => 'zaa-select',
        'var' => 'image',
        'label' => 'Image Selector',
        'options' => [
            ['value' => 1, 'label' => 'Image1.jpg'],
            ['value' => 2, 'label' => 'Image2.jpg'],
        ]
    ],
    [
        'type' => 'zaa-select',
        'var' => 'size',
        'label' => 'Image Size',
        'options' => [
            ['value' => 1, 'label' => 'Big'],
            ['value' => 2, 'label' => 'Small'],
        ]
    ],
]],

Expected Output:

print_r($this->getVarValue('col');

[
    ['image' => 1, 'size' => 2],
    ['image' => 2, 'size' => 2],
]

If type is array, the output should look as followed:

[
    ['image' => 1, 'size' => 2, 'checkboxes' => [1,3,4]],
    ['image' => 2, 'size' => 2, 'checkboxes' => [1,3,4]],
]
@TheMaaarc TheMaaarc self-assigned this Feb 7, 2017
@nadar nadar added this to the 1.0.0 milestone Feb 7, 2017
@nadar nadar changed the title [JS] New directive multiple input angular [JS] New angular directive multiple-input Feb 7, 2017
TheMaaarc added a commit that referenced this issue Feb 8, 2017
@nadar nadar closed this as completed Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants