-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Any example of a dropdown menu in a particular cell #304
Comments
I believe this is a duplicate of issue #248 and if so, there's an example on how to do it yourself in it |
I use boostrap dropdown |
In the picture I use ui-grid of angular 1.x {
field: 'Actions',
width: 100,
displayName: '',
enableFiltering: false,
cellTemplate: 'modules/school_management/enrollment/templates/action.cell.html',
} |
@ghiscoding this is a kind of formatting, it is not a context menu |
Perhaps you're looking for this or just use a Custom Formatter to can be a link or a button to open a modal window or whatever else. If you look at this Example 2 - Formatter, the last column named "Completed" does an action by using I suggest you to read the Wiki and if you are still confused, then I suggest you ask that kind of questions on Stack Overflow. It is most probably doable with a Custom Formatter. |
OKay, I'm trying to use component as you mentionned at #152 and see if I will be able to implement that |
This is exactly what I did with ui-grid |
If in the future we can have a property called 'cellTemplate' that will help to load the html template from a url or text in cell definition, we will make things easy. What I'm looking for is like the Grid Menu in a particular cell Something like this will be awsome {
id: 'title',
name: 'Title',
field: 'title',
cellTemplate: '/template_url_to_replace.html',
} |
A |
I give that a quick try at it, it's more complicate than I imagine, mainly for the following reason
I got a quick sample working by following these steps
See the commit for the complete list of changes. I might simplify this process in the future by moving this into a separate service, but even if I do, there are some steps that just cannot be removed (at least step 3-4 will always be required by the user). |
Thanks a lot |
The GitHub Demo and the angular-slickgrid-demos just got updated as well. You can see the live demo here Cheers ⭐️ |
It's a very good start 👍 |
I did some manipulations on the dropdown in order to improve it behavior a bit. This pull request has all my changes. |
General Question, Topic
Your Environment
Context
Expected Behavior
Current Behavior
Possible Solution
Code Sample
The text was updated successfully, but these errors were encountered: