Giter Club home page Giter Club logo

Comments (8)

MuhammedAlkhudiry avatar MuhammedAlkhudiry commented on July 29, 2024 2

see this https://www.brainbell.com/javascript/making-resizable-table-js.html
this is perfect.
also, this may help https://www.brainbell.com/javascript/download/demo-resizable.html
this is good article https://medium.com/the-z/making-a-resizable-div-in-js-is-not-easy-as-you-think-bda19a1bc53d

this is for an editor https://www.froala.com/wysiwyg-editor/v2.0/examples/resize-table
Sorry, if you are already searched and saw these.

I replaced your tool (sorry :() with this method https://www.brainbell.com/javascript/making-resizable-table-js.html
and removed the colgroup, and It's working even if the table is centered or in the right. but col-tool is used in the operations menu so I need to deal with this

from quill-better-table.

unzld avatar unzld commented on July 29, 2024 2

see this https://www.brainbell.com/javascript/making-resizable-table-js.html
this is perfect.
also, this may help https://www.brainbell.com/javascript/download/demo-resizable.html
this is good article https://medium.com/the-z/making-a-resizable-div-in-js-is-not-easy-as-you-think-bda19a1bc53d
this is for an editor https://www.froala.com/wysiwyg-editor/v2.0/examples/resize-table
Sorry, if you are already searched and saw these.

I replaced your tool (sorry :() with this method https://www.brainbell.com/javascript/making-resizable-table-js.html and removed the colgroup, and It's working even if the table is centered or in the right. but col-tool is used in the operations menu so I need to deal with this

@KMLX28 can you share your code sir on how you implemented it?

from quill-better-table.

MuhammedAlkhudiry avatar MuhammedAlkhudiry commented on July 29, 2024

The main problem I see with the alignment is with column-width-tool when I center the table the tool breaks.

from quill-better-table.

soccerloway avatar soccerloway commented on July 29, 2024

@MuhammedAlkhudiry Yes. Since the column-width calculation depend on locations of domNode.getBoundingClientRect(), the alignment changes will make calculation errors.

from quill-better-table.

MuhammedAlkhudiry avatar MuhammedAlkhudiry commented on July 29, 2024

do you know any other API (to change the size of an element by dragging)?, I believe It's worth rebuilding the tool just to make it like Word and Google Docs,

from quill-better-table.

MuhammedAlkhudiry avatar MuhammedAlkhudiry commented on July 29, 2024

see this https://www.brainbell.com/javascript/making-resizable-table-js.html
this is perfect.
also, this may help https://www.brainbell.com/javascript/download/demo-resizable.html
this is good article https://medium.com/the-z/making-a-resizable-div-in-js-is-not-easy-as-you-think-bda19a1bc53d

this is for an editor https://www.froala.com/wysiwyg-editor/v2.0/examples/resize-table
Sorry, if you are already searched and saw these.

from quill-better-table.

soccerloway avatar soccerloway commented on July 29, 2024

@MuhammedAlkhudiry thanks for your detailed reply~ quill-better-table uses colgroup and col html5 tags to control the width of columns, these tags are specialized for managing attributes of table columns.
Actually, I mean the calculations of most operations(like: merge, unmerge, select, insert, delelte) depend on the locations(got by domNode.getBoundingClientRect()) of DOM. The alignment changes will change the locations of DOM.
I think that it need to modify the location calculations for support alignment.

from quill-better-table.

soccerloway avatar soccerloway commented on July 29, 2024

You are welcome:)
That's cool. It looks like you have made the table module more powerful~
I will seriously consider your suggests.

from quill-better-table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.