Customizable grid and extra attributes#51
Open
TheMaverickProgrammer wants to merge 4 commits intodattn:masterfrom
Open
Customizable grid and extra attributes#51TheMaverickProgrammer wants to merge 4 commits intodattn:masterfrom
TheMaverickProgrammer wants to merge 4 commits intodattn:masterfrom
Conversation
…e requested size when dragging and dropping
…urn off this feature
…ute added to turn off this feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Features added:
Properties added:
nogrid- iftrue, hides grid and respective styles. Default isfalsenoplaceholder- iftruehides placeholder styling. Default isfalsedynamicResize- iffalse, reverts the layout if either a drag-n-drop or resize result would expand the container. Also iffalse, forces the css to match the exact width and height of the container. Default istrueplaceholderStyle- can take in a vue css* object and apply it on the placeholder. Default is gold dashed-lines and darkens grid.gridStyle- grid configuration object. Default values are explained belowgridStyleis a configuration to style the container as a grid and even include smaller, mini grids inside each cell/boxlayout:backgroundColor- css string of container background colorcolor- css string for the color of the cell-splitting linesthickness- css string for the thickness of the cell-splitting linesposition- css string for the position offset of the cell-splitting linesinnerGrid- object that provides additional configuration for the "mini grid" inside each cellinnerGridcan be configured with the following properties:cols- number of columns inside each cell/boxlayoutrows- number of rows inside each cell/boxlayoutcolor- css string of the color for the inner grid linesposition- css string of the position offset for the inner grid linesthickness- css string of the thickness for the inner grid linesThe default object values for
gridStyleobject are as follows:Image preview:

* vue css object example