Skip to content
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

Updated docs site? #3

Open
brian428 opened this issue Sep 12, 2018 · 3 comments
Open

Updated docs site? #3

brian428 opened this issue Sep 12, 2018 · 3 comments

Comments

@brian428
Copy link

Is there an updated version of the docs site that goes along with this fork? This forum post seems to indicate that Kevin had granted update rights, but I'm not finding any updated docs or merges into the official repo.

@GedMarc
Copy link
Owner

GedMarc commented Sep 13, 2018

Hi Brian,

Indeed I am supposed to!, for now the demo's have been updated but I really should jump on this now :)
Thing is its part of a much larger operation so I've been pushing it back for quite a while now,

The actual docs are still at http://layout.jquery-dev.com/.

In a a quick nut shell though - the new properties are for responsiveness and the default values are applied for bootstrap 4.
The sizes are modifiable for bootstrap 3 or the ui-layout-grid sizes or any other grid layout with their own sizes

  , responsive:
                    {
                        enabled: false,
                        when: 'md'
                        , sizes: {
                            xl: 1140,
                            lg: 992,
                            md: 768,
                            sm: 576,
                            xs: 0
                        }
                    }

e.g.

$().layout({
  "defaults": {
    "responsive": {
      "enabled": true,
      "when": "md",
      "sizes": {
        "md": 480
      }
    },
    "resizable": false,
    "resizerClass": "btn-custom btn-primary",
    "togglerClass": "btn-custom btn-secondary",
    "spacing_closed": 0,
    "spacing_open": 0,
    "onresizeall_end": $.layout.callbacks.resizeJQuery
  },
  "west": {
    "responsive": {
      "enabled": true,
      "when": "sm",
      "sizes": {
        "sm": 240
      }
    },
    "minSize": 240,
    "maxSize": 240
  },
  "north": {
    "responsive": {
      "enabled": false,
      
    },
    "resizable": false,
    "minSize": 68,
    "maxSize": 68,
    "togglerLength_open": 200,
    "togglerLength_closed": 200
  }
})

@solodyagin
Copy link

solodyagin commented Feb 14, 2019

Hi!
May be "demos" directory rename to "docs" and place on GitHub Pages ( https://gedmarc.github.io/layout ), or commit into "gh-pages" branch as https://allpro.github.io/layout/ ?

P.S. sorry for my English

@GedMarc
Copy link
Owner

GedMarc commented Mar 26, 2019

@solodyagin I'll have to research this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants