Open PabloPG opened 5 years ago
Hi @PabloPG, I tested the described scenario with our sample application, however, I was unable to recreate an issue. Can you sen us a sample project, which demonstrates, the problem you are facing?
hi @tsonevn
I created a test on the playground (https://play.nativescript.org/?template=play-ng&id=L9SE3q&v=2). I just discovered that by using the toggle function the collapse works using the template, but if you initialize the project using enableCollapsibleGroups='true'
it does not work.
@
hi @tsonevn I created a test on the playground (https://play.nativescript.org/?template=play-ng&id=L9SE3q&v=2). I just discovered that by using the toggle function the collapse works using the template, but if you initialize the project using
enableCollapsibleGroups='true'
it does not work.
I closed unintentionally
Hi @PabloPG,
Thank you for the provided sample.
I tested it on my side and find that there is one extra bracket(]
) defined in the HTML. If you replace enableCollapsibleGroups]="true"
with enableCollapsibleGroups="true"
, the option should be enabled properly. Check out the here the project with the needed edits. I have tested the project on Android API level 28.
Hello,
Maybe I explained it wrong and I ended up leaving a ]
in the example, but what happens is this:
If you use enableCollapsibleGroups="true"
the template tkGroupTemplate
does not style the collapse header.
What I found out by setting the example was: if you use enableCollapsibleGroups="true"
with a variable (like my example [enableCollapsibleGroups]="isCollapseEnabled"
) with default value true
then after loading the list, set this variable to false
, the collapse continues working (that is good) and the style of the header will be in agreement with the template (that is good).
Hi @PabloPG,
I understood what is the exact case. Currently, thetkGroupTemplate
styling is not supported. I will log it as a feature request. For now, I would suggest keeping track of the issue for further info.
any news?
Please, provide the details below:
I am using the "enbleCollpasibleGroups" method and need to create a custom template, however the "tkGroupTemplate" works only for group without the collapse
Tell us about the problem
GroupingFunction + Collpase with tkGroupTemplate
Which platform(s) does your issue occur on?
Both
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.