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

Datagrid add option for maximum selection #704

Open
alexander-schranz opened this issue Aug 5, 2016 · 4 comments
Open

Datagrid add option for maximum selection #704

alexander-schranz opened this issue Aug 5, 2016 · 4 comments

Comments

@alexander-schranz
Copy link
Member

The datagrid should have a select limit which can be used for sulu content types. How we handle this if you have a datagrid on an API I would say when you select more then the limit the first selected will be removed.

@danrot
Copy link
Contributor

danrot commented Nov 10, 2016

@alexander-schranz Can you elaborate a bit more? I don't really know what you mean here. How should the option be passed? What are the use cases?

@alexander-schranz
Copy link
Member Author

alexander-schranz commented Nov 10, 2016

@danrot example usage in a sulu content type

<property name="test" type="some_selection">
    <params>
        <param name="limit" value="2" />
    </params>
</property>

The some_selection open an overlay with a datagrid where he can choose entities. The datagrid should have an option so he can max. choose 2 of them. When he reach the limit he should not be able to select more.

@danrot
Copy link
Contributor

danrot commented Nov 11, 2016

Ah, you are talking about some kind of maximum selection count... I thought about the limit passed to the REST API 🙈

@alexander-schranz alexander-schranz changed the title Dategrid select limit Dategrid add option for maximum selection Nov 11, 2016
@alexander-schranz
Copy link
Member Author

@danrot issue renamed :)

@wachterjohannes wachterjohannes changed the title Dategrid add option for maximum selection Datagrid add option for maximum selection Nov 11, 2016
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