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

Cannot pass Modal object to Table\Column\ActionButtons::addModal() method #389

Open
DarkSide666 opened this issue Mar 1, 2018 · 1 comment
Assignees

Comments

@DarkSide666
Copy link
Member

DarkSide666 commented Mar 1, 2018

Sometimes I would like to customize Modal which is created by TableColumn\Actions->addModal(), but that's not possible because this method returns Button object and modal itself is not stored anywhere. Also I can't pass seed in $title field (which could be another option).

See this example:

// Set up Modal with Console inside
$button = $c->addModalAction('Post', 'Posting', function($p, $id) {
    ...
});

// Impossible to access modal object here to configure it :(
//$modal->addScrolling();
//$modal->notClosable();
@mvorisek
Copy link
Member

Modal::addToWithCl instead of Modal::add would allow object seed.

@mvorisek mvorisek changed the title can't pass Modal object in addModal() method Cannot pass Modal object to Table\Column\ActionButtons::addModal() method May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants