-
Notifications
You must be signed in to change notification settings - Fork 56
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
Attaching Buttons to CRUD (Active Button) #18
Labels
Comments
ActiveButton analog to ActiveWindow. |
nadar
changed the title
Duplicate Button for CRUD
Attaching Buttons to CRUD (Active Button)
Jul 11, 2018
Closed
Usage / Implementation Idea: class MyButton extends ActiveButton
{
public funtion render()
{
return '<button type="button">My Button {{model.title}}</button>';
}
public function handle()
{
if ($this->model->updateAttributes(['is_triggered' => true]) {
$this->sendReloadCrudEvent(); // commands the list to reload.
return $this->successOutput('Yes pushed'); // same as for active windows
}
}
} Attach the button in the ngrest model:
|
css classes for crud-buttons-button element: success flash: |
TheMaaarc
added a commit
that referenced
this issue
Nov 7, 2018
TheMaaarc
added a commit
that referenced
this issue
Nov 7, 2018
nadar
added a commit
that referenced
this issue
Nov 7, 2018
nadar
added a commit
that referenced
this issue
Nov 13, 2018
nadar
added a commit
that referenced
this issue
Nov 13, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue has originally been reported by @nadar at luyadev/luya#1506.
Moved here by @nadar.
A "DynamicButton" which allows you to copy a CRUD row, therefore we have to introduce a button ability similar to active windows, without an overlay.
Example Implementation of such a Button
The text was updated successfully, but these errors were encountered: