-
Notifications
You must be signed in to change notification settings - Fork 183
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
Remote data contains column names... #51
Comments
+1 for dynamic col_defs, I assumed it works like that and now I'm wondering how to use the directive. |
Sorry, after diving into the source code, I found a way, I just need to keep using the same array, since the reference to it is set just during compile and is not updated later. So, to use it dynamically:
|
This helped me a great deal, thanks!! |
Wow, thanks @jirihelmich! |
I've added a link to this issue to the readme, to share the knowledge. Closing the issue. |
So OP asked 2 questions and only the first question was answered. I'm also wondering about question number 2. Is there anyway to have different col_defs per each branch? Is that possible with the current code? Is it ever going to be possible with this directive? |
how use drag and drop item? thanks |
HI |
@rezanadimi72 It looks like the only possibility (without changing code yourself) is to change what icons are shown
hypothetically you could make them invisible by giving them a class that doesn't exist. Alternatively, assuming your tree-grid has the class of "tree-grid" you can use the following css
Finally, I don't think there is a point to doing this. The first column is what offsets "children" rows which is the whole reason for using this directive. Getting rid of the first column would make this directive act like a regular table. It seems like you might actually want a grid directive such as ui-grid. |
Do you have anything like this for Angular 5 table bootstrap tree.will it supports angular5 |
Thank boss,
I sill code with angularjs :D
2018-05-29 11:41 GMT+07:00 ANaveenA <notifications@github.com>:
… Do you have anything like this for Angular 5.will it supports angular5
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#51 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUTlII7BV6aUbWzKRFiFuKCH38Oq_H8nks5t3NFngaJpZM4E2j9e>
.
|
I have a static tree grid working fine but would now like two features :
Dynamic col_defs.
The idea here is that the data is retrieved from an external source via a promise. Once the promise is complete, I have both the col_defs and the tree_data. Is there any way to 'refresh' or 'reload' the tables from the new definition?
Different col_defs per branch.
I have a requirement to have different col_defs per branch. Is this possible?
Kind regards
The text was updated successfully, but these errors were encountered: