-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add indentation property to TreeTable #495
Comments
…pand/collapse) beacuse it is hardcoded in TreeviewRow component as 16px primefaces#495 primefaces#495
Any update on this? |
<TreeTable :indentation="2" Would make the spacing 2 rem. for a child. |
Thanks @cagataycivici to merge this change, I see you have committed this change into primevue 3.0.0. We are using primevue 2.0.8 and "vue": "2.6.10". After updating primevue version from 2.0.8 to 3.0.0, we are getting below errors: Error: ERROR in ./node_modules/primevue/components/paginator/Paginator.vue?vue&type=template&id=7f4b8eab& (./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/primevue/components/paginator/Paginator.vue?vue&type=template&id=7f4b8eab&) Errors compiling template: cannot be keyed. Place the key on real elements instead. 4 | @ ./node_modules/primevue/components/paginator/Paginator.vue?vue&type=template&id=7f4b8eab& 1:0-187 1:0-187 ERROR in ./node_modules/primevue/components/treetable/TreeTableRow.vue?vue&type=template&id=0cede5c1& (./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/primevue/components/treetable/TreeTableRow.vue?vue&type=template&id=0cede5c1&) Errors compiling template: Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead. 16 | {{resolveFieldData(node.data, col.props?.field)}} invalid expression: Unexpected token '.' in
Raw expression: :key="col.props?.columnKey||col.props?.field||i" 1 | invalid expression: Unexpected token '.' in
Raw expression: :style="col.props?.bodyStyle" 1 | invalid expression: Unexpected token '.' in
Raw expression: :class="col.props?.bodyClass" 1 | invalid expression: Unexpected token '.' in
Raw expression: v-if="col.props?.expander" 2 | <tr :class="containerClass" @click="onClick" @keydown="onKeyDown" @touchend="onTouchEnd" :style="node.style" tabindex="0"> invalid expression: Unexpected token '.' in
Raw expression: v-if="checkboxSelectionMode && col.props?.expander" 5 | 9 | <input type="checkbox" @Focus="onCheckboxFocus" @blur="onCheckboxBlur" /> invalid expression: Unexpected token '.' in
Raw expression: :is="col.children?.body" 13 | 14 | 15 | | ^^^^^^^^^^^^^^^^^^^^^^^^ 16 | {{resolveFieldData(node.data, col.props?.field)}} 17 | invalid expression: Unexpected token '.' in
Raw expression: v-if="col.children?.body" 13 | @ ./node_modules/primevue/components/treetable/TreeTableRow.vue?vue&type=template&id=0cede5c1& 1:0-190 1:0-190 ERROR in ./node_modules/primevue/components/treetable/TreeTable.vue?vue&type=template&id=455c8289& (./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/primevue/components/treetable/TreeTable.vue?vue&type=template&id=455c8289&) Errors compiling template: invalid expression: Unexpected token '.' in
Raw expression: :key="col.props?.columnKey||col.props?.field||i" 22 | invalid expression: Unexpected token '.' in
Raw expression: :style="col.props?.headerStyle" 22 | invalid expression: Unexpected token '.' in
Raw expression: :tabindex="col.props?.sortable ? '0' : null" 22 | invalid expression: Unexpected token '.' in
Raw expression: :is="col.children?.header" 25 | :tabindex="col.props?.sortable ? '0' : null" :aria-sort="getAriaSort(col)" @keydown="onColumnKeyDown($event, col)"> invalid expression: Unexpected token '.' in
Raw expression: v-if="col.props?.header" 26 | <span class="p-column-resizer" @mousedown="onColumnResizeStart" v-if="resizableColumns"> invalid expression: Unexpected token '.' in
Raw expression: {{col.props?.header}} 26 | <span class="p-column-resizer" @mousedown="onColumnResizeStart" v-if="resizableColumns"> invalid expression: Unexpected token '.' in
Raw expression: v-if="col.props?.sortable" 27 | invalid expression: Unexpected token '.' in
Raw expression: :key="col.props?.columnKey||col.props?.field||i" 32 | invalid expression: Unexpected token '.' in
Raw expression: :style="col.props?.filterHeaderStyle" 32 | invalid expression: Unexpected token '.' in
Raw expression: :is="col.children?.filter" 33 | invalid expression: Unexpected token '.' in
Raw expression: v-if="col.children?.filter" 33 | invalid expression: Unexpected token '.' in
Raw expression: :key="col.props?.columnKey||col.props?.field||i" 39 | invalid expression: Unexpected token '.' in
Raw expression: :style="col.props?.footerStyle" 39 | invalid expression: Unexpected token '.' in
Raw expression: :class="col.props?.footerClass" 39 | invalid expression: Unexpected token '.' in
Raw expression: :is="col.children?.footer" 40 | invalid expression: Unexpected token '.' in
Raw expression: {{col.props?.footer}} 40 | @ ./node_modules/primevue/components/treetable/TreeTable.vue?vue&type=template&id=455c8289& 1:0-187 1:0-187 |
Hi, @cagataycivici Is support for Primevue 2.0 reached end of life? Is Primevue 3.0.0 compatible with vue 2.x? |
I think we need to merged this same change into branch 2.1.0 for Vue 2x. Please confirm @cagataycivici . |
PrimeVue 2.x is still maintained, as an example we'll release 2.1.1 today with this enhancement getting ported back to 2.x. See #571. Note: PrimeVue 3 is not compatible with Vue 2.x., It is for Vue 3 only. |
Tree table toggler left margin is 16 px hardcoded in treetablerow component.
I want to set toggler(expand/collapse) button left margin as 24 px but unable to set because already set as 16 px in treetable row component. We need to pass prop from treetable to treetablerow component so that user can pass required left margin instead fixed 16 px.
The text was updated successfully, but these errors were encountered: