adopted-ember-addons / adopted-ember-addons/ember-collection

items of different heights or dynamic heights

Aberta
#108 1 comentário 7 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
235
Forks
81
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Without pre-rendering and measuring, is there support for items with heights which are not know before hand? If not, I tried a work-around where all items are the same height, but **expandable**. But is this supported since the height has to change dynamically?
I tried the following for a expandable list item:

```
{{#ember-collection
items=model
cell-layout=(mixed-grid-layout dimensions) as |item index|
}}
```

Then, in Ember, i changed to height of one item via
`this.get('dimensions').replace(index,1,[{width:1000, height:2000}]);`
But ember-collection doesnt seem to observe the dimensions array. How can I support either of the above cases?

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.