{"id":20645549,"url":"https://github.com/helpfulscripts/hslayout","last_synced_at":"2025-03-09T15:55:55.834Z","repository":{"id":29871847,"uuid":"33417049","full_name":"HelpfulScripts/hsLayout","owner":"HelpfulScripts","description":"Javascript library to do client-side UI layouts using mithril. See:","archived":false,"fork":false,"pushed_at":"2020-10-01T23:21:18.000Z","size":7709,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T09:34:03.131Z","etag":null,"topics":["hsdocs","layout-engine","mithriljs","typescript"],"latest_commit_sha":null,"homepage":"http://helpfulscripts.github.io/hsLayout/#!/api/hsLayout/0","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HelpfulScripts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-04T19:18:34.000Z","updated_at":"2020-10-01T23:21:21.000Z","dependencies_parsed_at":"2022-08-25T03:41:14.473Z","dependency_job_id":null,"html_url":"https://github.com/HelpfulScripts/hsLayout","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelpfulScripts%2FhsLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelpfulScripts%2FhsLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelpfulScripts%2FhsLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HelpfulScripts%2FhsLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HelpfulScripts","download_url":"https://codeload.github.com/HelpfulScripts/hsLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242714052,"owners_count":20173581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hsdocs","layout-engine","mithriljs","typescript"],"created_at":"2024-11-16T16:20:20.370Z","updated_at":"2025-03-09T15:55:55.814Z","avatar_url":"https://github.com/HelpfulScripts.png","language":"TypeScript","readme":"\u003cb\u003eDeprecated\u003c/b\u003e. Replaced by `Grid` widget in `hsWidget`.\n\nhsLayout \n========\n\n[![npm version](https://badge.fury.io/js/hslayout.svg)](https://badge.fury.io/js/hslayout)\n[![GitHub](https://img.shields.io/badge/GitHub-hsLayout-blue.svg)](https://github.com/helpfulscripts/hslayout)\n[![docs](https://img.shields.io/badge/hsDocs-hsLayout-blue.svg)](https://helpfulscripts.github.io/hsLayout/#!/api/hsLayout/0)\n[![Build Status](https://travis-ci.org/HelpfulScripts/hsLayout.svg?branch=master)](https://travis-ci.org/HelpfulScripts/hsLayout)\n[![Dependencies Status](https://david-dm.org/helpfulscripts/hslayout.svg)](https://david-dm.org/helpfulscripts/hslayout)\n[![codecov](https://codecov.io/gh/HelpfulScripts/hsLayout/branch/master/graph/badge.svg)](https://codecov.io/gh/HelpfulScripts/hsLayout)\n[![Known Vulnerabilities](https://snyk.io/test/github/HelpfulScripts/hsLayout/badge.svg?targetFile=package.json)](https://snyk.io/test/github/HelpfulScripts/hsLayout?targetFile=package.json)\n[![NPM License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://www.npmjs.com/package/hslayout)\n\nHelpful Scripts framework-independent data management functions.\n\n**hsLayout** provides means to layout the browser window in various ways.\u003cbr\u003e\nIt uses the [mithril](https://www.npmjs.com/package/mithril) framework to create the layout.\n\n## Installation\n`npm i hslayout`\n\n## Usage\nThe following snippet creates a layout that fills the provided *root* element with three rows. The first and third rows have a fixed size, while the middle row fills the remaining space. \n```\n\nimport { m, Layout } from 'hslayout';\n\nm.mount(root, {view: () =\u003e m(Layout, {\n    rows: [\"50px\", \"fill\", \"20px\"],\n    content:['Top row: 50px', 'Middle row: fill', 'Fixed footer']\n    })\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelpfulscripts%2Fhslayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelpfulscripts%2Fhslayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelpfulscripts%2Fhslayout/lists"}