Skip to content

DataTable: resizable columns but make selected columns non-resizable #193

Discussion options

You must be logged in to vote

Hello!

It can be done by adding pt prop to non-resizable Column.

const isResizable = ref(false);


<Column  field="code" header="Code"
    :pt="{
        columnresizer: {
            class: [
              {hidden: !isResizable.value}
           ],
       },
   }"
></Column>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sschwandter
Comment options

Answer selected by tugcekucukoglu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants